Alle Backend-Komponenten in ein docker Netzwerk "backend_nextcloud"

This commit is contained in:
bmen 2019-09-13 22:59:37 +02:00
parent 259a34f4ba
commit 9b8b3bae38
1 changed files with 8 additions and 3 deletions

View File

@ -4,9 +4,6 @@ networks:
webproxy:
external: true
backend-gitea:
external: false
services:
db:
image: mariadb
@ -14,6 +11,8 @@ services:
restart: always
volumes:
- /opt/appdata/nextcloud/mysql:/var/lib/mysql
networks:
- backend-nextcloud
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
@ -23,7 +22,10 @@ services:
redis:
image: redis:alpine
container_name: nextcloud-redis-bmen-cc
restart: always
networks:
- backend-nextcloud
web:
image: nginx
@ -33,6 +35,7 @@ services:
- app
networks:
- webproxy
- backend-nextcloud
volumes:
- /opt/appdata/nextcloud/nginx.conf:/etc/nginx/nginx.conf
volumes_from:
@ -49,6 +52,8 @@ services:
environment:
- MYSQL_HOST=db
- REDIS_HOST=redis
networks:
- backend-nextcloud
volumes:
- /opt/appdata/nextcloud/www:/var/www/html
container_name: nextcloud-bmen-cc