-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
ollama:
image: ollama/ollama
ports:
- "11435:11434"
volumes:
- ollama_data:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8001:8000"
env_file: .env
volumes:
- ./data:/app/data
depends_on:
- ollama
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
worker:
build:
context: .
dockerfile: worker/Dockerfile
env_file: .env
volumes:
- ./data:/app/data
depends_on:
ollama:
condition: service_started
backend:
condition: service_healthy
gpu-monitor:
build:
context: .
dockerfile: gpu-monitor/Dockerfile
env_file: .env
volumes:
- ./data:/app/data
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
depends_on:
- backend
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "3001:8080"
depends_on:
- backend
volumes:
ollama_data: