-
-
Notifications
You must be signed in to change notification settings - Fork 282
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.75 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- app-network
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
networks:
- app-network
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
networks:
- app-network
app:
build:
context: ./autorag-frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_HOST_URL=http://localhost
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_HOST_URL=http://localhost
restart: unless-stopped
depends_on:
- api
networks:
- app-network
volumes:
redis_data:
networks:
app-network:
driver: bridge