-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.02 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
version: '3.8'
services:
ollama-1:
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- ./ollama:/root/.ollama
container_name: ollama-1
tty: true
environment:
- OLLAMA_HOST=0.0.0.0:11434
- OLLAMA_KEEP_ALIVE=-1m
ports:
- "11434:11434" # Change the port mapping to avoid conflict
restart: unless-stopped
image: ollama/ollama:latest
ollama-2:
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- ./ollama:/root/.ollama
container_name: ollama-2
tty: true
environment:
- OLLAMA_HOST=0.0.0.0:11435
- OLLAMA_KEEP_ALIVE=-1m
ports:
- "11435:11435" # Change the port mapping to avoid conflict
restart: unless-stopped
image: ollama/ollama:latest
networks:
ollama_net: