Skip to content

Commit

Permalink
fix: docker nextwork 재구성
Browse files Browse the repository at this point in the history
  • Loading branch information
mclub4 committed May 22, 2024
1 parent 5b81e30 commit 8f31b10
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
## Production Deploy Version

version: '3'
networks:
backend_network:
ssl_network:

services:
redis:
Expand Down Expand Up @@ -34,6 +31,7 @@ services:
ports:
- "8081:8081"
networks:
- gateway_network
- backend_network

spring:
Expand Down Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 8f31b10

Please sign in to comment.