Quick and dirty Consul + Registrator + Docker tutorial

Standard

A quick and dirty Consul + Registrator + Docker tutorial.

https://github.com/subokita/consul-docker-test

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.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s