network 셋팅 추가
This commit is contained in:
+23
-6
@@ -17,6 +17,8 @@ services:
|
||||
depends_on:
|
||||
- linkforty-prod
|
||||
- linkforty-sandbox
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
# ==========================================
|
||||
# 1. 운영 (Prod) 환경
|
||||
@@ -31,16 +33,17 @@ services:
|
||||
POSTGRES_DB: linkforty_prod
|
||||
volumes:
|
||||
- pgdata_prod:/var/lib/postgresql/data
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
redis-prod:
|
||||
image: redis:7-alpine
|
||||
container_name: linkforty-redis-prod
|
||||
restart: always
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
linkforty-prod:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: linkforty-custom:latest
|
||||
container_name: linkforty-core-prod
|
||||
restart: always
|
||||
@@ -51,6 +54,8 @@ services:
|
||||
depends_on:
|
||||
- postgres-prod
|
||||
- redis-prod
|
||||
networks:
|
||||
linkforty_default:
|
||||
|
||||
# ==========================================
|
||||
# 2. 개발 (Sandbox) 환경
|
||||
@@ -65,16 +70,17 @@ services:
|
||||
POSTGRES_DB: linkforty_sandbox
|
||||
volumes:
|
||||
- pgdata_sandbox:/var/lib/postgresql/data
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
redis-sandbox:
|
||||
image: redis:7-alpine
|
||||
container_name: linkforty-redis-sandbox
|
||||
restart: always
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
linkforty-sandbox:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: linkforty-custom:latest
|
||||
container_name: linkforty-core-sandbox
|
||||
restart: always
|
||||
@@ -85,7 +91,18 @@ services:
|
||||
depends_on:
|
||||
- postgres-sandbox
|
||||
- redis-sandbox
|
||||
networks:
|
||||
- linkforty_default
|
||||
|
||||
volumes:
|
||||
pgdata_prod:
|
||||
pgdata_sandbox:
|
||||
|
||||
# 💡 Nginx가 바라보던 172.18.0.0/16 대역 서브넷 및 네트워크 명시적 선언
|
||||
networks:
|
||||
linkforty_default:
|
||||
name: linkforty_default
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.19.0.0/16
|
||||
|
||||
Reference in New Issue
Block a user