From 8f31b1010fbae2268b43a9620fb08d87bd4c2bf8 Mon Sep 17 00:00:00 2001 From: mclub4 Date: Wed, 22 May 2024 20:51:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20nextwork=20=EC=9E=AC=EA=B5=AC?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 111884f6b6..f9c47768d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,6 @@ ## Production Deploy Version version: '3' -networks: - backend_network: - ssl_network: services: redis: @@ -34,6 +31,7 @@ services: ports: - "8081:8081" networks: + - gateway_network - backend_network spring: @@ -87,7 +85,7 @@ services: - "ruby" command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" networks: - - backend_network + - gateway_network - ssl_network certbot: @@ -99,3 +97,11 @@ services: entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" networks: - ssl_network + +networks: + gateway_network: + driver: bridge + backend_network: + driver: bridge + ssl_network: + driver: bridge \ No newline at end of file