-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (65 loc) · 1.5 KB
/
docker-compose.yaml
File metadata and controls
69 lines (65 loc) · 1.5 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
version: '3.8'
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
network_mode: host
volumes:
- ollama_data:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
restart: always
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
ollama-setup:
image: ollama/ollama:latest
container_name: ollama-setup
depends_on:
ollama:
condition: service_healthy
network_mode: host
entrypoint: /bin/sh
command: >
-c "
echo 'Waiting for Ollama service to be ready...';
sleep 5;
echo 'Pulling qwen3:8b model...';
ollama pull qwen3:8b;
echo 'Model pulled successfully';
"
environment:
- OLLAMA_HOST=http://localhost:11434
restart: "no"
tranvideo:
image: kindmitaishere/tranvideo-v0.6:latest
container_name: tranvideo
depends_on:
ollama-setup:
condition: service_completed_successfully
network_mode: host
volumes:
- ./cache:/root/tranvideo/cache
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
environment:
- OLLAMA_HOST=http://localhost:11434
restart: always
volumes:
ollama_data:
driver: local
tranvideo_data:
driver: local