Docker HTTP-requests between containers Docker HTTP-requests between containers docker docker

Docker HTTP-requests between containers


See the document. The port 10010 is a host port but not container port. You should use 9000 when you access service2 container directly.

So just change "http://service2:10010/api/" to "http://service2:9000/api/" and it will work.