-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (75 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
78 lines (75 loc) · 1.92 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
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
78
services:
questmaster:
build:
context: .
dockerfile: Dockerfile
ports:
- "8501:8501"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CHATGPT_MODEL=${CHATGPT_MODEL:-gpt-4o-mini-2024-07-18}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- DEBUG=${DEBUG:-False}
- STREAMLIT_HOST=0.0.0.0
- STREAMLIT_PORT=8501
- FAST_DOWNWARD_TIMEOUT=${FAST_DOWNWARD_TIMEOUT:-300}
volumes:
- ./data:/app/data
- ./resources:/app/resources
- ./.env:/app/.env
- questmaster_logs:/app/logs
command: ["python", "-m", "questmaster.cli", "frontend"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
questmaster-dev:
build:
context: .
dockerfile: Dockerfile
ports:
- "8501:8501"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CHATGPT_MODEL=${CHATGPT_MODEL:-gpt-4o-mini-2024-07-18}
- LOG_LEVEL=DEBUG
- DEBUG=True
- STREAMLIT_HOST=0.0.0.0
- STREAMLIT_PORT=8501
volumes:
- .:/app
- questmaster_logs:/app/logs
command: ["python", "-m", "questmaster.cli", "frontend"]
profiles:
- dev
questmaster-cli:
ports:
- "8501:8501"
build:
context: .
dockerfile: Dockerfile
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CHATGPT_MODEL=${CHATGPT_MODEL:-gpt-4o-mini-2024-07-18}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- DEBUG=${DEBUG:-False}
- FAST_DOWNWARD_TIMEOUT=${FAST_DOWNWARD_TIMEOUT:-300}
volumes:
- ./data:/app/data
- ./resources:/app/resources
- ./.env:/app/.env
- questmaster_logs:/app/logs
command: ["./start.sh"]
stdin_open: true
tty: true
profiles:
- cli
volumes:
questmaster_logs:
driver: local
driver_opts:
type: none
o: bind
device: ./logs