A Docker build which runs an Alpine Linux container with NGINX and docker-gen
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t russmckendrick/nginx-proxy
Once you have the router running you can launch your containers with the
VIRTUAL_HOST environment variable;
docker run -p 80 -e VIRTUAL_HOST=some.domain.com -t ...
This is based on following by Jason Wilder ....
.... the only reason why I didn't use the Docker
jwilder/nginx-proxy container was because I wanted to build it on top of my own base image, and also I am a operating system snob.