Added Ollama

This commit is contained in:
2025-10-11 22:34:05 +02:00
commit d77c0ba525
2 changed files with 574 additions and 0 deletions

33
ollama/docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- /mnt/e/volumes/ollama/data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0:11434
# Optional: Set GPU device if you have multiple GPUs
# - NVIDIA_VISIBLE_DEVICES=0
command: serve
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
- app-network
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
app-network:
driver: bridge