feat: configure Tailscale to run as daemon with DNS acceptance

Update docker-compose.yml to run tailscaled as a background daemon and execute
tailscale up with DNS acceptance flag. This replaces the previous env_file
configuration approach.
This commit is contained in:
Davide Polonio 2026-04-06 19:17:01 +02:00
parent 52313faac2
commit 454bac9155

View File

@ -20,8 +20,11 @@ services:
hostname: patrizio
image: tailscale/tailscale:latest
restart: unless-stopped
env_file:
- tailscale.env
command: >
sh -c "tailscaled &
sleep 5 &&
tailscale up --accept-dns=true &&
wait"
healthcheck:
test: ["CMD-SHELL", "tailscale status"]
interval: 1s