Caddy as reverse proxy in docker refuses to connect to other containers Caddy as reverse proxy in docker refuses to connect to other containers docker docker

Caddy as reverse proxy in docker refuses to connect to other containers


I just got help from the forum and it turns out, that caddy redirect to the port INSIDE the container, not the public one. In my case, portainer runs on 80 internally, so changing the Caddyfile to this:

smallhetzi.fading-flame.com {    reverse_proxy portainer:80}

or this

smallhetzi.fading-flame.com {    reverse_proxy http://portainer}

does the job. This also means, that I could get rid of exposing portainer directly over the port 1000. Now I can only access it via the proxy.

Hope someone gets some help from that :)