I\'m at the first stage in learning how to use Docker so I\'m trying basic things. I\'ve created two Node Express services that need to exchange data via HTTP-requests.
See the document. The port 10010 is a host port but not container port. You should use 9000 when you access service2 container directly.
service2
So just change "http://service2:10010/api/" to "http://service2:9000/api/" and it will work.
"http://service2:10010/api/"
"http://service2:9000/api/"