network 셋팅 추가
This commit is contained in:
+23
-6
@@ -17,6 +17,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- linkforty-prod
|
- linkforty-prod
|
||||||
- linkforty-sandbox
|
- linkforty-sandbox
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# 1. 운영 (Prod) 환경
|
# 1. 운영 (Prod) 환경
|
||||||
@@ -31,16 +33,17 @@ services:
|
|||||||
POSTGRES_DB: linkforty_prod
|
POSTGRES_DB: linkforty_prod
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata_prod:/var/lib/postgresql/data
|
- pgdata_prod:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
redis-prod:
|
redis-prod:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: linkforty-redis-prod
|
container_name: linkforty-redis-prod
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
linkforty-prod:
|
linkforty-prod:
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: linkforty-custom:latest
|
image: linkforty-custom:latest
|
||||||
container_name: linkforty-core-prod
|
container_name: linkforty-core-prod
|
||||||
restart: always
|
restart: always
|
||||||
@@ -51,6 +54,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgres-prod
|
- postgres-prod
|
||||||
- redis-prod
|
- redis-prod
|
||||||
|
networks:
|
||||||
|
linkforty_default:
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# 2. 개발 (Sandbox) 환경
|
# 2. 개발 (Sandbox) 환경
|
||||||
@@ -65,16 +70,17 @@ services:
|
|||||||
POSTGRES_DB: linkforty_sandbox
|
POSTGRES_DB: linkforty_sandbox
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata_sandbox:/var/lib/postgresql/data
|
- pgdata_sandbox:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
redis-sandbox:
|
redis-sandbox:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: linkforty-redis-sandbox
|
container_name: linkforty-redis-sandbox
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
linkforty-sandbox:
|
linkforty-sandbox:
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: linkforty-custom:latest
|
image: linkforty-custom:latest
|
||||||
container_name: linkforty-core-sandbox
|
container_name: linkforty-core-sandbox
|
||||||
restart: always
|
restart: always
|
||||||
@@ -85,7 +91,18 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgres-sandbox
|
- postgres-sandbox
|
||||||
- redis-sandbox
|
- redis-sandbox
|
||||||
|
networks:
|
||||||
|
- linkforty_default
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata_prod:
|
pgdata_prod:
|
||||||
pgdata_sandbox:
|
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