Quick and dirty Consul + Registrator + Docker tutorial


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.

Have fun.



In indefinite hiatus, which would probably last a very long time.

I want to focus on my work creating things I believe in.


If sure fire way to be happy is to lower your expectation. Then the obvious way to make others happy is to do something that exceeds their expectation when they are expecting nothing at all.