From a443373a50c8028f6b9ca184b4662d9d7b72be27 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 17 Oct 2020 15:41:58 +0200 Subject: [PATCH] Docker Compose: Use internal networks between containers --- docker/dev/docker-compose.yml | 14 ++++++++++---- docker/docker-compose.yml | 11 ++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml index 858d6232..4a2ab24e 100644 --- a/docker/dev/docker-compose.yml +++ b/docker/dev/docker-compose.yml @@ -11,7 +11,8 @@ services: ports: - 5000:80 networks: - - internal + - fpm + - internet depends_on: - es_php_fpm es_php_fpm: @@ -33,8 +34,9 @@ services: MAIL_DRIVER: log APP_NAME: Engelsystem DEV networks: - - internal - database + - fpm + - internet depends_on: - es_database es_workspace: @@ -56,8 +58,9 @@ services: MAIL_DRIVER: log APP_NAME: Engelsystem DEV networks: - - internal - database + - fpm + - internet depends_on: - es_database es_database: @@ -76,5 +79,8 @@ volumes: db: {} networks: - internal: database: + internal: true + fpm: + internal: true + internet: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 47b85d56..f7955ff2 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -8,7 +8,8 @@ services: ports: - 5000:80 networks: - - internal + - fpm + - internet depends_on: - es_php_fpm es_php_fpm: @@ -22,8 +23,9 @@ services: MYSQL_PASSWORD: engelsystem MYSQL_DATABASE: engelsystem networks: - - internal - database + - fpm + - internet depends_on: - es_database es_database: @@ -42,5 +44,8 @@ volumes: db: {} networks: - internal: database: + internal: true + fpm: + internal: true + internet: