I don't get how nginx is supposed to know which address to use to contact the service instance.
In yout example the services run on port 3000 which is not mapped to the host os. The VIRTUAL_HOST env var tells nginx-proxy to contact the service on host localost. In my configuration (docker on osx, all up to date to stable releases) this does not work because the services are not listening in localhost. Infact each container has its own private ip addres that is not known by nginx.
I don't get how nginx is supposed to know which address to use to contact the service instance.
In yout example the services run on port 3000 which is not mapped to the host os. The VIRTUAL_HOST env var tells nginx-proxy to contact the service on host
localost. In my configuration (docker on osx, all up to date to stable releases) this does not work because the services are not listening inlocalhost. Infact each container has its own private ip addres that is not known by nginx.