Posted on Leave a comment

Easy and powerful reverse proxy and load balancing with Docker

nginx reverse proxy

I build a lot of websites, and I run them in Docker containers.
What happens is, I end up with URLs like this 0.0.0.0:1234.

This is a problem because,

  1. They are difficult to remember
  2. Do not allow sub-domains.
  3. Bad for password managers

My initial solution was to add a reverse proxy with Nginx so I have virtual hosts that point to my containers. However, this means I was writing the same Nginx configuration, over and over again, only with different ports.

So as any sane developer will do, I took a couple hours to automate the process once and for all.

Continue reading: Easy and powerful reverse proxy and load balancing with Docker


Also published on Medium.

Spread the love
Posted on Leave a comment

There are no comments

Leave a comment... please :-)

Your email address will not be published. Required fields are marked *