Fix ACME DNS resolution failures in the caddy container

The host's systemd-resolved stub (127.0.0.53) is unreachable from inside
the container network namespace, so Caddy could not resolve Let's Encrypt
endpoints. Point it at public resolvers instead.
This commit is contained in:
2026-08-25 19:23:56 +02:00
parent 071bc1eaa5
commit cb29c68d75
+5
View File
@@ -64,6 +64,11 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
# Host uses systemd-resolved (127.0.0.53), unreachable from inside the
# container network namespace; ACME lookups need a real resolver.
dns:
- 1.1.1.1
- 8.8.8.8
environment: environment:
PUBLIC_DOMAIN: ${PUBLIC_DOMAIN} PUBLIC_DOMAIN: ${PUBLIC_DOMAIN}
CMS_DOMAIN: ${CMS_DOMAIN} CMS_DOMAIN: ${CMS_DOMAIN}