2021-10-21 08:19:19 +02:00
|
|
|
version: '3'
|
2021-10-08 22:08:48 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
application:
|
|
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
|
|
|
restart: always
|
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "nextcloud"
|
|
|
|
MYSQL_USER: "nextcloud"
|
|
|
|
MYSQL_PASSWORD: "{{nextcloud_database_password}}"
|
|
|
|
MYSQL_HOST: database:3306
|
|
|
|
database:
|
|
|
|
logging:
|
|
|
|
driver: journald
|
2022-01-23 11:42:04 +01:00
|
|
|
image: mariadb:10.5
|
|
|
|
command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW"
|
2021-10-08 22:08:48 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "nextcloud"
|
|
|
|
MYSQL_USER: "nextcloud"
|
|
|
|
MYSQL_PASSWORD: "{{nextcloud_database_password}}"
|
2022-11-16 12:28:16 +01:00
|
|
|
MYSQL_ROOT_PASSWORD: "{{nextcloud_database_password}}"
|
2023-04-15 18:11:25 +02:00
|
|
|
MARIADB_AUTO_UPGRADE: "1"
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql
|
|
|
|
restart: always
|
2022-01-20 21:59:53 +01:00
|
|
|
healthcheck:
|
|
|
|
test: "/usr/bin/mysql --user=nextcloud --password={{nextcloud_database_password}} --execute \"SHOW DATABASES;\""
|
|
|
|
interval: 3s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 5
|
2021-10-08 22:08:48 +02:00
|
|
|
web:
|
|
|
|
image: nginx:alpine
|
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
depends_on:
|
|
|
|
- application
|
|
|
|
volumes:
|
2021-10-18 18:46:58 +02:00
|
|
|
- /home/administrator/volumes/docker/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes_from:
|
|
|
|
- application
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
2022-11-16 09:33:29 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2022-01-20 21:36:32 +01:00
|
|
|
volumes:
|
|
|
|
- redis:/data
|
2022-01-21 18:09:56 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 30
|
2021-10-08 22:08:48 +02:00
|
|
|
cron:
|
|
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
|
|
|
restart: always
|
|
|
|
logging:
|
2021-11-11 14:25:19 +01:00
|
|
|
driver: journald
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
data:
|
2022-01-20 21:36:32 +01:00
|
|
|
redis:
|
2021-10-08 22:08:48 +02:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|