Added internal network between nextcloud and its db

master
Meliurwen 4 years ago
parent b61cdde45e
commit 624e43e9bd
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 7
      docker-compose.yml

@ -13,6 +13,9 @@ services:
volumes:
- ${LOCAL_STACK_DIR}/nextcloud/data:/var/www/html
- /etc/timezone:/etc/timezone:ro
networks:
- default
- nextcloud
env_file:
- nextcloud.env
- nc_db.env
@ -25,6 +28,8 @@ services:
restart: ${DB_RESTART:-unless-stopped}
volumes:
- ${LOCAL_STACK_DIR}/db/data:/var/lib/mysql
networks:
- nextcloud
env_file:
- nc_db.env
environment:
@ -34,3 +39,5 @@ networks:
default:
external:
name: ${NETWORK}
nextcloud:
external: false

Loading…
Cancel
Save