-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
35 lines (31 loc) · 1.17 KB
/
docker-compose.override.yml
File metadata and controls
35 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 개발 환경용 오버라이드 설정
services:
# Nginx - 개발 모드 설정
nginx:
ports:
- "80:80"
# 개발 환경에서는 HTTPS 비활성화 (필요시 주석 해제)
# - "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
# API 서버 - 개발 모드 설정
api:
ports:
- "8000:8000" # 개발 시 직접 접근 가능
command: ["uv", "run", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--log-level", "debug"]
environment:
- DEBUG=true
volumes:
- ./backend:/app:cached # 개발 시 파일 변경 감지를 위한 캐시 모드
# Worker - 개발 모드 설정
worker:
command: ["uv", "run", "celery", "-A", "worker.worker.celery_app", "worker", "--loglevel=debug", "-Q", "agent,celery", "--pool=solo"]
environment:
- DEBUG=true
# Beat - 개발 모드 설정
beat:
command: ["uv", "run", "celery", "-A", "worker.worker.celery_app", "beat", "-S", "redbeat.RedBeatScheduler", "--loglevel=debug", "--max-interval=5"]
environment:
- DEBUG=true
# Flower - 메모리 절약을 위해 제거됨