Using the docker-gen container with nginx as a reverse proxy: a practical example

Following on from the post using docker-gen stand alone in a docker container, we will now use the container in a more real world example. docker-gen will be used to generate configuration files for nginx to act as a reverse proxy for other docker containers serving web content. Purpose You have a set of Docker containers ready for serving web content; these could be either Apache, lighthttpd, hugo, something you have written yourself, or anything which understands HTTP and returns content. »