This is a simple demo and introduction to consul.
Setup assumes a Mac running a modern version of OS X
- Install boot2docker
- Install docker-compose:
pip install docker-compose
- Clone this repo, run consul
git clone [email protected]:micahhausler/consul-demo.git
cd consul-demo/
docker-compose build
docker-compose up
http://192.168.59.103:8500/ui/
Check out the IPython notebook Consul by running:
pip install -r python_app/requirements.txt
ipython notebook --no-browser
and navigate to /notebooks/Consul.ipnb
You can query the consul DNS API once your containers are up by running:
dig @$(boot2docker ip) PythonApp.service.consul +tcp