Add DNS servers to the compose service
build-container / build (push) Successful in 1m36s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-20 13:59:31 -04:00
1 parent a4907e0cee
commit 1b49ee6cb4
1 file changed
+5
+5
View File
@@ -3,6 +3,11 @@ services:
image: git.necloud.us/nate/hub:latest # built by the Gitea workflow; `docker compose build` builds locally instead
build: .
restart: unless-stopped
# The container looks names up through these. If necloud.us only exists on your home/LAN DNS
# (Pi-hole, router, AdGuard...), set DNS_1 to that server's IP instead.
dns:
- ${DNS_1:-1.1.1.1}
- ${DNS_2:-8.8.8.8}
ports:
- "8080:8080"
environment: