auto nginx proxy for dockerized websites

142 Views Asked by At

Hello stackoverflow community!

I am currently having this scenario with dockerized websites.

Host Machine - Website A - Website B - Website C

All of the websites have different domains. Right now I make a manual proxy_pass from the host machine nginx to the website dockers. e.G. Website A listen to port 9001:80, Website B listen to port 9002:80.

What I want to achieve is, that I don't have to assign a special port to every container, but having one docker reverse proxy container which acts as a dns/reverse proxy for all other containers.

What is the best-practise to do this?

I found this http://weave.works/ and this http://jasonwilder.com/blog/2014/03/25/automated-nginx-reverse-proxy-for-docker/

Where the last one still have a lot of issues and I don't know if it's ready for production.

Best Regards, Taylor

0

There are 0 best solutions below