-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
51 lines (49 loc) · 1.09 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
51 lines (49 loc) · 1.09 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
services:
agent_service:
build:
context: .
dockerfile: docker/Dockerfile.service
ports:
- "8000:8000"
env_file:
- .env
environment:
- CHINOOK_DB_PATH=/app/data/Chinook.db
- SQLITE_DB_PATH=/app/checkpoints.db
volumes:
- ./data:/app/data
- ./chroma_db:/app/chroma_db
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
streamlit_app:
build:
context: .
dockerfile: docker/Dockerfile.app
ports:
- "8501:8501"
depends_on:
agent_service:
condition: service_healthy
env_file:
- .env
environment:
- AGENT_URL=http://agent_service:8000
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
app-network:
driver: bridge