NGINX proxy for multiple containers?

In this topic:

the author discusses using multiple web containers with one data container. They use different ports to direct the traffic to the right container. I am thinking of doing something similar, but using an Nginx proxy to forward traffic based on the request’s hostname. But each web container has its own Nginx proxy in front of rails, and two layers of proxy seems dubious. Would there be issues with having an Nginx installation on the host do the proxying, and talk directly to Rails on each of the web containers, bypassing their own proxies?

1 Like