-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.33 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
# Phase-6 production stack: FastAPI service + Redis. The Flask app
# (app.py) is intentionally NOT containerized and stays the developer +
# manager UI — it now owns the model-ops surface at /manager/model-ops,
# replacing the previous Streamlit dashboard.
#
# docker compose up -d
#
# Then:
# curl http://localhost:8000/health -> {"status":"ok",...,"cache_backend":"redis"}
# python app.py -> http://localhost:5000 (Flask UI + /manager/model-ops)
version: "3.9"
services:
redis:
image: redis:7-alpine
container_name: restoai-redis
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
api:
build:
context: .
dockerfile: Dockerfile
container_name: restoai-api
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
environment:
REDIS_URL: "redis://redis:6379/0"
RAG_CACHE_TTL_SEC: "3600"
RAG_CACHE_MAX_ENTRIES: "1024"
RAGAS_LOG_PATH: "/app/logs/ragas_proxy.jsonl"
UVICORN_WORKERS: "2"
ports:
- "8000:8000"
volumes:
- api_logs:/app/logs
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
volumes:
api_logs: