Docker Community Forums

Share and learn in the Docker community.

Getting ERR_CONNECTION-REFUSED error

I have created a Github repo that uses Angular , Node Api , and Nginx:

https://github.com/sonnyk22/docker-angular-node-nginx

I’ve added the needed Dockerfiles in both the Client and Server projects, and also leveraged the docker-Compose file to build/up them all together.

It works great on my Host laptop (Windows 10), however, when I browse to the same containerized web app from another laptop (Mac) that I have at home (both laptops running in my home network), the Angular and Nginx works fine, but the Angular client cannot connect to the Node api container. I get the ERR_CONNECTION-REFUSED error as show below. I have tried everything and cannot figure out what could be the root cause.

Have you seen this type of error before? I am really hoping to get advise on what I have been doing wrong.

Thank you