Docker connection refused between two containers

You never ever use ip-numbers when working with docker containers. :smiley:

If you change the 0.0.0.0 in the nginx config to the name of the container (n1 or n2) it will work. Docker has an internal DNS that uses the container name as host.

Look at a previous reply I did a couple of days ago on a similar topic.