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 <davide.polonio@infinitaslearning.com>
This commit is contained in:
Davide Polonio 2026-04-06 19:25:50 +02:00
parent d8eac547e8
commit ec155abe4a

View File

@ -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