Very slow access to self-hosted applications through Docker

Ahhh I think you’re running into NAT hairpinning issues:

Basically, DNS for your domain is resolved to the WAN IP, then when a request goes out, it reaches your router, then because it likely doesn’t support NAT hairpinning, the connection gets dropped because it doesn’t know to route the request back internally.

Please read through this article to get an idea of how it works:

The solution is typically to also run a DNS server in your home network, to implement split DNS. Basically this means that your local DNS server will resolve your domain to the LAN IP address of your server, instead of the WAN IP address, but when outside of your home network, the domain will still resolve to the WAN IP.

Those are your access logs, not the Caddy logs. You can see those by running docker logs <name-of-the-caddy-container>.