for docker containers, using consul template
this is a fork of docker-loadbalancer
You can find the image at Docker Hub
docker pull princemaple/consul-template-nginx:v3
mount your own nginx.conf into the container if you need more complex configuration
docker-compose build
docker-compose up -d
# play with it in your browser
# ...when had enough fun
docker-compose scale app=5
# go have some more fun