-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 827 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 827 Bytes
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
services:
backend:
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
- HOST=0.0.0.0
- PORT=8000
# Allow frontend container to call backend
- CORS_ORIGINS=["http://localhost", "http://frontend"]
volumes:
# Persist generated episodes and ChromaDB vector store
- ./output:/app/output
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped