-
-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.2 KB
/
docker-compose.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
redis:
image: redis:latest
ports:
- "6379:6379"
api:
build:
context: ./api
dockerfile: Dockerfile
volumes:
- ./api:/app/api
- ./projects:/app/projects
working_dir: /app/api
ports:
- "8000:8000"
- "7690:7690" # for panel report
- "8501:8501" # for streamlit chat
- "8100:8100" # for chat API server
environment:
- WATCHFILES_FORCE_POLLING=true # Docker on Windows/macOS를 위한 설정
- TZ=Asia/Seoul
- PYTHONPATH=/app/api
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- LOG_LEVEL=DEBUG # 로그 레벨 설정
- PYTHONUNBUFFERED=1 # Python 출력 버퍼링 비활성화
depends_on:
- redis
flower:
image: mher/flower
command: celery flower --broker=redis://redis:6379/0 --port=5555
ports:
- "5555:5555"
environment:
- TZ=Asia/Seoul
- FLOWER_BROKER_API=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- redis
- api
volumes:
redis_data:
networks:
app-network:
driver: bridge