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
|
|
|
|
image: mariadb
|
2021-11-11 14:25:19 +01:00
|
|
|
command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed"
|
2021-10-08 22:08:48 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "nextcloud"
|
|
|
|
MYSQL_USER: "nextcloud"
|
|
|
|
MYSQL_PASSWORD: "{{nextcloud_database_password}}"
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql
|
|
|
|
restart: always
|
|
|
|
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
|
|
|
|
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:
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|