From 231737a31d36cb28e5712dc1d96b7622026aed60 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Tue, 29 Mar 2022 23:16:30 +0200 Subject: [PATCH] added container networks --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 57d574a..c78847d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,9 @@ services: - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER} # specify a service so a custom port can be used - traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT} + networks: + - internal + - traefik volumes: - ./data/nextcloud:/var/www/html @@ -38,10 +41,13 @@ services: - MYSQL_DATABASE=${NC_DATABASE_NAME} - MYSQL_USER=${NC_DATABASE_USER} - MYSQL_PASSWORD=${NC_DATABASE_PASS} + networks: + - internal volumes: - ./data/mysql:/var/lib/mysql networks: + internal: traefik: external: true name: ${TRAEFIK_NETWORK}