This image uses ContainerPilot to register Rethinkdb with Consul. As you scale out the number of Rethinkdb instances they will be automatically clustered together.
- CONSUL hostname where consul can be found
- CONSUL_AGENT determines if the consul agent is executed in the container
$ cd examples/compose
$ docker-compose up -d
$ docker-compose scale rethinkdb=3
Look at the dashboard for one of the rethinkdb instances and observe that they are all clustered.