This commit is contained in:
mrwacka 2026-09-08 14:00:20 +02:00
parent db1ae4b056
commit 3b6ba7e258

View file

@ -22,6 +22,12 @@ services:
TZ: Europe/Zurich TZ: Europe/Zurich
volumes: volumes:
- /srv/apps-int01/data/nextcloud/mariadb:/var/lib/mysql - /srv/apps-int01/data/nextcloud/mariadb:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -uroot -p$$MYSQL_ROOT_PASSWORD || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
logging: *default-logging logging: *default-logging
redis: redis:
@ -34,15 +40,23 @@ services:
- superSTITION_105 - superSTITION_105
volumes: volumes:
- /srv/apps-int01/data/nextcloud/redis:/data - /srv/apps-int01/data/nextcloud/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "superSTITION_105", "ping"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
logging: *default-logging logging: *default-logging
nextcloud: nextcloud:
image: nextcloud:latest image: nextcloud:34.0.3-apache
container_name: nextcloud container_name: nextcloud
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- mariadb mariadb:
- redis condition: service_healthy
redis:
condition: service_healthy
environment: environment:
MYSQL_HOST: mariadb MYSQL_HOST: mariadb
MYSQL_DATABASE: nextDB MYSQL_DATABASE: nextDB
@ -50,31 +64,35 @@ services:
MYSQL_PASSWORD: "#L963a.bID,.BOJ;W1iwL@E:j]F|U3" MYSQL_PASSWORD: "#L963a.bID,.BOJ;W1iwL@E:j]F|U3"
REDIS_HOST: redis REDIS_HOST: redis
REDIS_HOST_PASSWORD: "superSTITION_105" REDIS_HOST_PASSWORD: "superSTITION_105"
NEXTCLOUD_ADMIN_USER: admin
NEXTCLOUD_ADMIN_PASSWORD: "HIER_EIN_NEUES_STARKES_ADMIN_PASSWORT"
NEXTCLOUD_TRUSTED_DOMAINS: "nextcloud.theboxhub.ch"
OVERWRITEHOST: "nextcloud.theboxhub.ch"
OVERWRITEPROTOCOL: "https"
TZ: Europe/Zurich TZ: Europe/Zurich
volumes: volumes:
- /srv/apps-int01/data/nextcloud/config:/var/www/html/config - /srv/apps-int01/data/nextcloud/config:/var/www/html/config
- /srv/apps-int01/data/nextcloud/custom_apps:/var/www/html/custom_apps - /srv/apps-int01/data/nextcloud/custom_apps:/var/www/html/custom_apps
- /srv/apps-int01/data/nextcloud/data:/var/www/html/data - /srv/apps-int01/data/nextcloud/data:/var/www/html/data
extra_hosts:
- "nextcloud.theboxhub.ch:10.100.20.10"
- "theboxhub.ch:10.100.20.10"
ports: ports:
- "8083:80" - "8083:80"
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/status.php || exit 1"] test: ["CMD-SHELL", "curl -fsS http://localhost/status.php | grep -q 'installed' || exit 1"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 5 retries: 10
start_period: 60s start_period: 120s
logging: *default-logging logging: *default-logging
nextcloud-cron: nextcloud-cron:
image: nextcloud:latest image: nextcloud:34.0.3-apache
container_name: nextcloud-cron container_name: nextcloud-cron
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- mariadb mariadb:
- redis condition: service_healthy
redis:
condition: service_healthy
entrypoint: /cron.sh entrypoint: /cron.sh
environment: environment:
MYSQL_HOST: mariadb MYSQL_HOST: mariadb
@ -90,32 +108,6 @@ services:
- /srv/apps-int01/data/nextcloud/data:/var/www/html/data - /srv/apps-int01/data/nextcloud/data:/var/www/html/data
logging: *default-logging logging: *default-logging
notify_push:
image: icewind1991/notify_push:latest
container_name: notify_push
restart: unless-stopped
depends_on:
- nextcloud
- redis
environment:
NEXTCLOUD_URL: "https://nextcloud.theboxhub.ch"
NEXTCLOUD_TRUSTED_DOMAINS: "nextcloud.theboxhub.ch"
PORT: 7867
REDIS_HOST: redis
REDIS_HOST_PASSWORD: "superSTITION_105"
entrypoint: ["/notify_push", "/nextcloud-config/config.php"]
volumes:
- /srv/apps-int01/data/nextcloud/config:/nextcloud-config:ro
ports:
- "7867:7867"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7867/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
logging: *default-logging
imaginary: imaginary:
image: h2non/imaginary:latest image: h2non/imaginary:latest
container_name: imaginary container_name: imaginary