From ec155abe4a29c8b337a6684309e3dfc38fb732a3 Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 6 Apr 2026 19:25:50 +0200 Subject: [PATCH] feat(patrizio): configure Tailscale DNS and automatic connection Add custom DNS records for internal services (pihole and ollama) and configure Tailscale to start automatically with accept-dns flag and custom login server. Remove static DNS configuration in favor of extra_records approach. Signed-off-by: Davide Polonio --- patrizio/docker-compose.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/patrizio/docker-compose.yml b/patrizio/docker-compose.yml index 4074cbd..f48705c 100644 --- a/patrizio/docker-compose.yml +++ b/patrizio/docker-compose.yml @@ -20,10 +20,21 @@ services: hostname: patrizio image: tailscale/tailscale:latest restart: unless-stopped - dns: - - 100.64.0.4 - - 1.1.1.1 - command: tailscaled + extra_records: + - name: "pi.hole" + type: "A" + value: "100.64.0.4" + - name: "pihole.lan.poldebra.me" + type: "A" + value: "100.64.0.4" + - name: "ollama.lan.poldebra.me" + type: "A" + value: "100.64.0.7" + command: > +- sh -c "tailscaled & +- sleep 5 && +- tailscale up --accept-dns=true --login-server=https://vpn.poldebra.me && +- wait" healthcheck: test: ["CMD-SHELL", "tailscale status"] interval: 1s