Using Consul for service discovery.
Get the latest version of Consul with the following command:
$ docker pull consul
Running a three node cluster for development by starting up two more instances and telling them to join the first node.
# Setup the consul
$ docker-compose up -d
# Register the service on the server side
$ cd ./server && node server.js
# Listen to the changes of the registered service
$ cd ./client && node client.js
For displaying the ui, the following is needed
$ ... -ui -client=0.0.0.0 -bind='{{ GetPrivateIP }}'