-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 1.18 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
services:
redis:
image: redis/redis-stack:latest
ports:
- "6379:6379"
- "8001:8001"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
restart: unless-stopped
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- .env
environment:
- REDIS_URL=redis://redis:6379
volumes:
# Hot reload: mount source code for development (writable for reload)
- ./src:/app/src
- ./.chainlit:/app/.chainlit
- ./public:/app/public
- ./chainlit.md:/app/chainlit.md
- ./chainlit_en-US.md:/app/chainlit_en-US.md
# Mount dependency files for updates
- ./pyproject.toml:/app/pyproject.toml
- ./uv.lock:/app/uv.lock
command: ["uv", "run", "chainlit", "run", "src/summit_sim/main.py", "--host", "0.0.0.0", "--port", "8000", "--watch"]
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s