116 lines
No EOL
3.4 KiB
YAML
116 lines
No EOL
3.4 KiB
YAML
x-logging: &default-logging
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
services:
|
|
mariadb:
|
|
image: mariadb:11
|
|
container_name: nextcloud-mariadb
|
|
restart: unless-stopped
|
|
command:
|
|
- --transaction-isolation=READ-COMMITTED
|
|
- --binlog-format=ROW
|
|
- --character-set-server=utf8mb4
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: "NCROOT_8gL2mQ4xT7vK1pD9cY6n"
|
|
MYSQL_DATABASE: "nextDB"
|
|
MYSQL_USER: "oc_oc_admin"
|
|
MYSQL_PASSWORD: "#L963a.bID,.BOJ;W1iwL@E:j]F|U3"
|
|
TZ: Europe/Zurich
|
|
volumes:
|
|
- /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
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: nextcloud-redis
|
|
restart: unless-stopped
|
|
command:
|
|
- redis-server
|
|
- --requirepass
|
|
- superSTITION_105
|
|
volumes:
|
|
- /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
|
|
|
|
nextcloud:
|
|
image: nextcloud:34.0.3-apache
|
|
container_name: nextcloud
|
|
restart: unless-stopped
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
environment:
|
|
MYSQL_HOST: mariadb
|
|
MYSQL_DATABASE: nextDB
|
|
MYSQL_USER: oc_oc_admin
|
|
MYSQL_PASSWORD: "#L963a.bID,.BOJ;W1iwL@E:j]F|U3"
|
|
REDIS_HOST: redis
|
|
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
|
|
volumes:
|
|
- /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/data:/var/www/html/data
|
|
ports:
|
|
- "8083:80"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://localhost/status.php | grep -q 'installed' || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 120s
|
|
logging: *default-logging
|
|
|
|
nextcloud-cron:
|
|
image: nextcloud:34.0.3-apache
|
|
container_name: nextcloud-cron
|
|
restart: unless-stopped
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
entrypoint: /cron.sh
|
|
environment:
|
|
MYSQL_HOST: mariadb
|
|
MYSQL_DATABASE: nextDB
|
|
MYSQL_USER: oc_oc_admin
|
|
MYSQL_PASSWORD: "#L963a.bID,.BOJ;W1iwL@E:j]F|U3"
|
|
REDIS_HOST: redis
|
|
REDIS_HOST_PASSWORD: "superSTITION_105"
|
|
TZ: Europe/Zurich
|
|
volumes:
|
|
- /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/data:/var/www/html/data
|
|
logging: *default-logging
|
|
|
|
imaginary:
|
|
image: h2non/imaginary:latest
|
|
container_name: imaginary
|
|
restart: unless-stopped
|
|
command: ["-concurrency", "10", "-enable-url-source"]
|
|
logging: *default-logging |