From 5f69d3b38987c535f410c4c31d494650fb120c28 Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 6 Apr 2026 22:47:21 +0200 Subject: [PATCH] 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. --- patrizio/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patrizio/docker-compose.yml b/patrizio/docker-compose.yml index 0870de1..68c896f 100644 --- a/patrizio/docker-compose.yml +++ b/patrizio/docker-compose.yml @@ -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: >