In this chapter, we saw how you can solve the problem of having multiple containers that want to serve data on the same public port. We learned what a proxy server and reverse proxy server is and how a reverse proxy is used in load balancing.
We installed and configured two different reverse proxies: HAProxy and Nginx. In my workflow, the Nginx setup fits better, just copying a file, replacing a few words, and then reloading Nginx to have it working. HAProxy might work better in your setup; the choice is yours and one cannot be said to be better than the other.
nginx-proxy
automates the process of creating a reverse proxy for containers that are started and is an OK solution for a PaaS, except for one thing: easy and straightforward deployment. That's what the next chapter is all about.