folkzone:troubleshooting:caddy_502_bad_gateway
Table of Contents
Caddy 502 Bad Gateway
Services show 502 Bad Gateway errors.
Symptom
Services show 502 Bad Gateway errors. Caddy cannot reach backend containers. Services temporarily unavailable after configuration changes.
Cause
Caddy and backend containers are not on the same Docker network, or Caddy needs to be restarted after configuration changes.
Fix
Steps:
1. Verify Caddy is running: `docker compose ps caddy` 2. Check Caddy logs: `docker compose logs caddy` 3. Ensure backend containers are on the same network 4. Restart Caddy: `docker compose restart caddy` 5. Test connectivity: `docker exec folkzone-caddy ping backend-container-name`
Prevention
Always restart Caddy after configuration changes. Ensure all services use the same Docker network.
See Also
folkzone/troubleshooting/caddy_502_bad_gateway.txt · Last modified: by 127.0.0.1
