mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
added watchtower and ollama
This commit is contained in:
@@ -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
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user