-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.47 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
version: '3.8'
services:
# ── Ollama: local model runner ─────────────────────────────────────
ollama:
image: ollama/ollama:latest
container_name: coderouter-ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
# ── Pull the local model once on startup ──────────────────────────
model-pull:
image: ollama/ollama:latest
container_name: coderouter-model-pull
depends_on:
ollama:
condition: service_healthy
environment:
- OLLAMA_HOST=http://ollama:11434
entrypoint: ["ollama", "pull", "qwen2.5-coder:1.5b"]
restart: "no"
# ── CodeRouter AI app ─────────────────────────────────────────────
app:
build: .
container_name: coderouter-app
ports:
- "8000:8000"
env_file:
- .env # contains FIREWORKS_API_KEY
environment:
- OLLAMA_HOST=http://ollama:11434
depends_on:
ollama:
condition: service_healthy
model-pull:
condition: service_completed_successfully
restart: unless-stopped
volumes:
ollama_data: