This is a balancer based on nginx
It's a good way to dispatch requests to services. So a dispatcher(or balancer?) is needed. I searched in the hub.docker.com, but the repository nginx-balancer has been invalid, so I make it.
docker build --rm -t your-image-name .
docker run -d -p 80:80 --name your-container-name -v /path/to/logs:/etc/nginx/logs/ your-image-name