added watchtower and ollama

This commit is contained in:
2024-07-19 11:24:57 -07:00
parent da2e91b925
commit 74dca8091c
4 changed files with 85 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
# Ollama
**WORK IN PROGRESS**
Dockerhub: https://hub.docker.com/r/ollama/ollama
## Preperation
```
sudo yum install -y nvidia-container-toolkit
```
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
+19
View File
@@ -0,0 +1,19 @@
version: '3.8'
services:
ollama:
image: ollama/ollama
container_name: ollama
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
volumes:
- ollama:/root/.ollama
ports:
- "11434:11434"
volumes:
ollama: