forked from softee220/3-character-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.07 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
36
37
38
39
40
41
42
43
44
45
46
47
version: "3.8"
services:
chatbot:
build:
context: .
dockerfile: Dockerfile
container_name: chatbot-app
ports:
- "5001:5000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- FLASK_ENV=development
- FLASK_DEBUG=True
- SECRET_KEY=${SECRET_KEY:-dev-secret-key-please-change}
volumes:
# 개발 시 코드 변경사항 실시간 반영
- ./app.py:/app/app.py
- ./services:/app/services
- ./templates:/app/templates
- ./static:/app/static
- ./config:/app/config
# ChromaDB 데이터 영속성 보장
- chatbot-data:/app/static/data/chatbot/chardb_embedding
restart: unless-stopped
networks:
- chatbot-network
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:5000/health')",
]
interval: 30s
timeout: 3s
retries: 3
start_period: 40s
volumes:
chatbot-data:
driver: local
networks:
chatbot-network:
driver: bridge