fix(patrizio): move extra_hosts to tailscale service

Containers using network_mode: service:X share the target container's
network namespace including /etc/hosts. Move the ollama hosts entry
to the tailscale service so it applies to the shared namespace.
This commit is contained in:
Davide Polonio 2026-04-06 22:47:21 +02:00
parent c2ff70f79d
commit 5f69d3b389

View File

@ -3,8 +3,6 @@ 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
@ -24,6 +22,8 @@ services:
restart: unless-stopped
dns:
- 100.100.100.100
extra_hosts:
- "ollama.lan.poldebra.me:100.64.0.7"
env_file:
- tailscale.env
command: >