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:
parent
d8eac547e8
commit
ec155abe4a
@ -20,10 +20,21 @@ services:
|
|||||||
hostname: patrizio
|
hostname: patrizio
|
||||||
image: tailscale/tailscale:latest
|
image: tailscale/tailscale:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
dns:
|
extra_records:
|
||||||
- 100.64.0.4
|
- name: "pi.hole"
|
||||||
- 1.1.1.1
|
type: "A"
|
||||||
command: tailscaled
|
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:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "tailscale status"]
|
test: ["CMD-SHELL", "tailscale status"]
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user