wget inside the alpine container resolves `localhost` to ::1, but nginx only binds IPv4 with `listen 80;`, so the healthcheck saw 'Connection refused' even though the container was happily serving traffic to Caddy. Pinning the check to 127.0.0.1 keeps it strictly IPv4.
681 B
681 B