2019-09-14 13:44:47 +00:00
|
|
|
version: '3'
|
2019-09-13 19:48:21 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
webproxy:
|
|
|
|
external: true
|
|
|
|
|
2019-09-13 21:01:14 +00:00
|
|
|
backend-nextcloud:
|
2019-09-13 21:02:12 +00:00
|
|
|
external: true
|
2019-09-13 21:01:14 +00:00
|
|
|
|
2019-09-13 19:48:21 +00:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2019-09-14 13:50:51 +00:00
|
|
|
- /opt/appdata/nextcloud/mysql:/var/lib/mysql
|
2019-09-13 19:48:21 +00:00
|
|
|
environment:
|
2019-09-13 19:57:01 +00:00
|
|
|
- MYSQL_ROOT_PASSWORD=nextcloud
|
2019-09-14 13:44:47 +00:00
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
container_name: nextcloud-db
|
2019-09-13 19:48:21 +00:00
|
|
|
|
2019-09-13 20:24:38 +00:00
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
2019-09-14 13:44:47 +00:00
|
|
|
container_name: nextcloud-redis
|
2019-09-13 20:59:37 +00:00
|
|
|
networks:
|
|
|
|
- backend-nextcloud
|
2019-09-14 13:44:47 +00:00
|
|
|
restart: always
|
2019-09-13 20:24:38 +00:00
|
|
|
|
2019-09-13 20:30:33 +00:00
|
|
|
app:
|
2019-09-14 13:44:47 +00:00
|
|
|
image: nextcloud:fpm-alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2019-09-14 13:50:51 +00:00
|
|
|
- /opt/appdata/nextcloud:/var/www/html
|
2019-09-13 20:30:33 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_HOST=db
|
|
|
|
- REDIS_HOST=redis
|
2019-09-14 13:44:47 +00:00
|
|
|
env_file:
|
|
|
|
- db.env
|
2019-09-13 20:59:37 +00:00
|
|
|
networks:
|
|
|
|
- backend-nextcloud
|
2019-09-13 20:30:33 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2019-09-14 13:44:47 +00:00
|
|
|
container_name: nextcloud
|
2019-09-13 21:22:15 +00:00
|
|
|
|
2019-09-13 21:24:00 +00:00
|
|
|
web:
|
2019-09-14 13:54:20 +00:00
|
|
|
build: nginx
|
2019-09-14 13:44:47 +00:00
|
|
|
restart: always
|
2019-09-13 21:24:00 +00:00
|
|
|
ports:
|
|
|
|
- 8080:80
|
2019-09-14 13:44:47 +00:00
|
|
|
volumes:
|
2019-09-14 13:50:51 +00:00
|
|
|
- /opt/appdata/nextcloud:/var/www/html:ro
|
2019-09-14 13:44:47 +00:00
|
|
|
depends_on:
|
2019-09-13 21:24:00 +00:00
|
|
|
- app
|
|
|
|
networks:
|
|
|
|
- webproxy
|
|
|
|
- backend-nextcloud
|
2019-09-14 13:44:47 +00:00
|
|
|
container_name: nextcloud-nginx
|
|
|
|
|
|
|
|
cron:
|
|
|
|
image: nextcloud:fpm-alpine
|
|
|
|
restart: always
|
2019-09-13 21:24:00 +00:00
|
|
|
volumes:
|
2019-09-14 13:50:51 +00:00
|
|
|
- /opt/appdata/nextcloud:/var/www/html
|
2019-09-14 13:44:47 +00:00
|
|
|
entrypoint: /cron.sh
|
2019-09-13 21:24:00 +00:00
|
|
|
depends_on:
|
2019-09-14 13:44:47 +00:00
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
container_name: nextcloud-cron
|