76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
version: '3'
|
|
|
|
networks:
|
|
webproxy:
|
|
external: true
|
|
|
|
backend-nextcloud:
|
|
external: true
|
|
|
|
services:
|
|
db:
|
|
image: mariadb
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
restart: always
|
|
volumes:
|
|
- /opt/appdata/nextcloud/mysql:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=nextcloud
|
|
env_file:
|
|
- db.env
|
|
container_name: nextcloud-db
|
|
networks:
|
|
- backend-nextcloud
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: nextcloud-redis
|
|
networks:
|
|
- backend-nextcloud
|
|
restart: always
|
|
|
|
app:
|
|
image: nextcloud:fpm-alpine
|
|
restart: always
|
|
volumes:
|
|
- /opt/appdata/nextcloud/www:/var/www/html
|
|
environment:
|
|
- MYSQL_HOST=db
|
|
- REDIS_HOST=redis
|
|
env_file:
|
|
- db.env
|
|
networks:
|
|
- backend-nextcloud
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
container_name: nextcloud
|
|
|
|
web:
|
|
image: nginx:alpine
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
volumes:
|
|
- /opt/appdata/nextcloud/www:/var/www/html:ro
|
|
- /opt/appdata/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- app
|
|
networks:
|
|
- webproxy
|
|
- backend-nextcloud
|
|
container_name: nextcloud-nginx
|
|
|
|
cron:
|
|
image: nextcloud:fpm-alpine
|
|
restart: always
|
|
volumes:
|
|
- /opt/appdata/nextcloud/www:/var/www/html
|
|
entrypoint: /cron.sh
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
container_name: nextcloud-cron
|
|
networks:
|
|
- backend-nextcloud
|