Add Tailnet search domain to container DNS config

The custom dns servers added in 2d49dab caused Docker to drop the
Tailscale search domain from the container's resolv.conf, breaking
short hostname resolution (e.g. pb-dev). Adding dns_search with
TAILNET_DOMAIN restores it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
j
2026-03-18 22:00:02 +13:00
parent 2d49dab9da
commit 975127a694

View File

@@ -4,6 +4,8 @@ services:
dns: dns:
- 100.100.100.100 - 100.100.100.100
- 8.8.8.8 - 8.8.8.8
dns_search:
- ${TAILNET_DOMAIN}
ports: ports:
- "${WEB_PORT}:5000" - "${WEB_PORT}:5000"
environment: environment: