A quick and dirty Consul + Registrator + Docker tutorial.
The example uses docker, consul, registrator and python’s flask framework to quickly create REST services.
The interesting files are the
- call-server.py: which shows how to use python-consul to obtain available services (other flask REST service) from the consul node
- And the docker-compose.yml that creates consul server, registrator container, and two REST service containers which are automatically registered using registrator.