-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 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
version: "3.9"
services:
# ── FastAPI Backend ────────────────────────────────────────
api:
build:
context: .
dockerfile: Dockerfile.api
container_name: dotmappers-api
ports:
- "8000:8000"
env_file:
- .env
volumes:
- ./support_tickets.csv:/app/support_tickets.csv:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
# ── Streamlit UI ──────────────────────────────────────────
ui:
build:
context: .
dockerfile: Dockerfile.ui
container_name: dotmappers-ui
ports:
- "8501:8501"
env_file:
- .env
environment:
# Tell Streamlit where the API is (inside Docker network)
- API_BASE_URL=http://api:8000
depends_on:
api:
condition: service_healthy
restart: unless-stopped