Pet project to get familiar with docker, nginx, consul and registrator.
Prerequisite
- Docker must be installed
deploy.sh
- launches 4 instances of a simple service that returns the hostname
- launches consul, nginx and registrator
- nginx is configured to distribute requests to the services via round robin
- nginx is exposed on port 80 on the host
- consul is exposed on port 8500 on the host
undeploy.sh
- removes containers, images generated by deploy.sh and the network