chore: 킹서버 배포 스크립트, 포트 환경변수화, 프론트 nginx 가 /v1 을 백엔드로 전달
This commit is contained in:
1 parent
ebbc21dc0f
commit
64de307995
5 files changed
+48
-4
No files matched your search
+7
-4
@@ -6,8 +6,11 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
target: prod
|
||||
args:
|
||||
# 비우면 같은 주소의 /v1 로 부르고 nginx 가 backend 로 넘긴다
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-}
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "${FRONT_PORT:-8080}:80"
|
||||
restart: unless-stopped
|
||||
|
||||
# 개발형: docker compose --profile dev up --build frontend-dev → http://localhost:5173
|
||||
@@ -36,7 +39,7 @@ services:
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
ports:
|
||||
- "9810:9800"
|
||||
- "${API_BIND:-9810}:9800"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -70,7 +73,7 @@ services:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
ports:
|
||||
- "5440:5432"
|
||||
- "${PG_BIND:-5440}:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./backend/postgres-init:/docker-entrypoint-initdb.d:ro
|
||||
@@ -85,7 +88,7 @@ services:
|
||||
image: redis:7-alpine
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
ports:
|
||||
- "6390:6379"
|
||||
- "${REDIS_BIND:-6390}:6379"
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
healthcheck:
|
||||
|
||||
Reference in new issue
Block a user