fix(patrizio): fix MagicDNS resolution for ollama.lan.poldebra.me

- Run tailscaled with --netfilter-mode=off to avoid iptables failures
  in the container, which were breaking the MagicDNS proxy at 100.100.100.100
- Set dns: 100.100.100.100 so Docker forwards DNS queries to Tailscale's
  MagicDNS proxy instead of Contabo's public DNS, which was resolving
  ollama.lan.poldebra.me to the server's public IP instead of the tailnet IP
This commit is contained in:
Davide Polonio 2026-04-06 22:40:21 +02:00
parent 8bedfa2cff
commit ddc7e5a1b6

View File

@ -20,10 +20,12 @@ services:
hostname: patrizio hostname: patrizio
image: tailscale/tailscale:latest image: tailscale/tailscale:latest
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100
env_file: env_file:
- tailscale.env - tailscale.env
command: > command: >
sh -c "tailscaled & sh -c "tailscaled --netfilter-mode=off &
sleep 5 && sleep 5 &&
tailscale up --accept-dns=true --login-server=https://vpn.poldebra.me && tailscale up --accept-dns=true --login-server=https://vpn.poldebra.me &&
wait" wait"