From 624e43e9bdbe968fc4cf189bc26c285610b2dad7 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 22 Aug 2020 01:39:52 +0200 Subject: [PATCH] Added internal network between nextcloud and its db --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c2358d4..ff2afa2 100644 --- a/docker-compose.yml +++ b/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