🐳 Docker 환경별 설정 분리 및 실행 스크립트 추가

- docker-compose.dev.yml: 개발환경 전용 설정
- docker-compose.prod.yml: 프로덕션환경 전용 설정
- scripts/dev.sh, scripts/prod.sh: 환경별 실행 스크립트
- Dockerfile 및 nginx.conf 추가로 완전한 컨테이너화 구현
- 환경변수를 통한 유연한 API URL 설정
This commit is contained in:
Hyungi Ahn
2025-08-01 13:46:22 +09:00
parent a7e4c0158e
commit 7dbb742981
7 changed files with 198 additions and 0 deletions

26
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3.8'
# 개발 환경용 오버라이드
services:
frontend:
environment:
- VITE_API_URL=http://localhost:8000
build:
args:
- VITE_API_URL=http://localhost:8000
backend:
volumes:
- ./backend:/app # 개발 시 코드 변경 실시간 반영
environment:
- DEBUG=True
- RELOAD=True
# 개발용 포트 매핑
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"