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

Chapter 6. Reverse Proxy Requests

One big problem in having many containers with public ports on the same server is that they can't all listen to the standard ports for their kinds of services. If we have a MySQL backend service and have 10 MySQL containers running, only one of them can listen to the MySQL standard port 3306. For those who expose a web server, the standard port 80 can only be used by one of their WordPress containers. In this chapter, we'll cover the following topics:

  • Explaining the problem
  • Coming up with a solution to the problem
  • Implementing the solution with Nginx and HAProxy
  • Automating the process of mapping domains

Explaining the problem

The problem in having many containers with the same services on the same host is that there ...

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