fix(patrizio): add extra_hosts to resolve ollama to tailscale IP

MagicDNS is broken in the container (DNS proxy returns SERVFAIL with
'no upstream resolvers set'). Use extra_hosts as a reliable workaround
to ensure ollama.lan.poldebra.me resolves to its Tailscale IP 100.64.0.7
instead of the server's public IP which has an expired cert.
This commit is contained in:
Davide Polonio 2026-04-06 22:46:03 +02:00
parent ddc7e5a1b6
commit c2ff70f79d

View File

@ -3,6 +3,8 @@ services:
image: ghcr.io/polpetta/patrizio-bot:v0.2.0
network_mode: service:tailscale
restart: unless-stopped
extra_hosts:
- "ollama.lan.poldebra.me:100.64.0.7"
command: -f /data/ serve
volumes:
- ./data:/data:rw