-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 788 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 788 Bytes
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
services:
ollama:
image: ollama/ollama:latest
container_name: sparql-ollama
runtime: nvidia
environment:
- OLLAMA_HOST=0.0.0.0:11434
- OLLAMA_KEEP_ALIVE=30m
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- CUDA_VISIBLE_DEVICES=0
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
count: all
volumes:
- ollama_data:/root/.ollama
ports:
- "11434:11434"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- sparql-net
restart: unless-stopped
volumes:
ollama_data:
driver: local
networks:
sparql-net:
driver: bridge