When in Docker, 127.0.0.1 (a.k.a. localhost) refers to this container, so Caddy is trying to connect to something within the same container. Which won’t work.
You should use the container name of the other containers to connect to them.
Also, I strongly recommend using subdomains for each service, instead of using subpaths: