O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required