Live cutover 2026-07-15 odkrył: nvidia-smi not found, brak libnvidia-ml w ldcache — host nigdy nie miał sterownika, natywna Ollama mieliła na CPU. Sekcja deploy.resources (nvidia) zakomentowana do czasu instalacji sterownika (backlog). nvidia-container-toolkit doinstalowany na hoście (prerequisite, brakował w runbooku). Kontener zweryfikowany: 5/5 modeli z bind-mounta, embed bge-m3 dim=1024, reachable z PIHA przez tailnet.
25 lines
996 B
YAML
25 lines
996 B
YAML
services:
|
|
ollama:
|
|
image: ollama/ollama:latest
|
|
container_name: ollama
|
|
restart: unless-stopped
|
|
ports:
|
|
# Loopback: service.yaml's healthcheck + healthcheck.sh curl localhost
|
|
# directly on the node. Tailscale IP: llm-gateway@PIHA reaches this over
|
|
# the mesh as http://solaria:11434 (MagicDNS). No 0.0.0.0 — this is a
|
|
# private service, don't expose wider than local + internal network.
|
|
# Requires .env (from env.example) next to this file at deploy.
|
|
- "127.0.0.1:11434:11434"
|
|
- "${TAILSCALE_BIND_IP}:11434:11434"
|
|
volumes:
|
|
- /opt/homelab/data/ollama:/root/.ollama
|
|
# GPU disabled 2026-07-15: brak sterownika NVIDII na hoście (nvidia-smi not found).
|
|
# Przywrócić po naprawie sterownika — task w backlogu.
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: all
|
|
# capabilities: [gpu]
|