Cannot communicate between two containers that are in the same network

Hi,

I have reverse proxy container which and then I also have another container with multiple services; all are in the same network, but when I try to curl any of them by host, or IP (using the docker IP address) I either get connection timed out or a resolve error.

I will happily provide any information that is needed. I’m not sure if this is going to be something to do with the host firewall or something I am missing.

I have been playing around and I cannot even curl localhost.

curl: (28) Resolving timed out after 1092150817065 milliseconds
root@fdddfac65cf6:/app# curl 127.0.01
^C
root@fdddfac65cf6:/app# curl 127.0.0.1
curl: (28) Connection time-out
root@fdddfac65cf6:/app# curl 127.0.0.1:80
curl: (28) Connection time-out
root@fdddfac65cf6:/app# curl 127.0.0.1 80
curl: (28) Connection time-out
curl: (28) Resolving timed out after 1092032049065 milliseconds
root@fdddfac65cf6:/app# curl http://localhost
curl: (28) Resolving timed out after 1098290737065 milliseconds
root@fdddfac65cf6:/app# curl http://0.0.0.0:80
curl: (28) Connection time-out
root@fdddfac65cf6:/app# curl http://0.0.0.0
curl: (28) Connection time-out

I’m able to wget so maybe Docker isn’t the issue… maybe it is the nginx proxy after all. (assets don’t load, 504 gateway timeout)

Actually, this may be a docker issue. Browsing to the site using the port number in the URL wouldn’t be caught by nginx, so it works, which makes sense.