Docker is a great platform which we use at large to simplify and automate development & provisioning processes.

Sometimes though it’s not easy to find quick solutions to common problems you face in production systems. That’s why we’ve developed several patterns/custom solutions to make it painless and fun.

Below is one of out short solutions:

Problem

Hosting multiple static sites with NGINX + Docker.

Solution

Our custom NGINX image:

docker-nginx-dynamic-sites is a simple solution to have one NGINX docker/container instance for multiple domains (virtual hosts) dynamically. For more info go to the project’s github page.