Automatically creates a RethinkDB cluster using Docker Swarm.
You can use the supplied docker-compose.yml
file as an example to deploy
this project as a Docker Stack.
The deploy.sh
script uses the compose file to deploy a stack.
When deploying your cluster, first add the stack to your swarm:
$ ./deploy.sh
Then update one of your nodes to indicate it as a production node for rethinkdb:
$ docker node update --label-add rethinkdb=production <NODE>
When the RethinkDB admin is accessible, add the label to your other nodes.
Healthcheck is performed by probe.go
, which is based on
https://github.com/rosskukulinski/rethinkdb-kubernetes.
The probe connects to the server and executes a basic command.
The RethinkDB Web Console is not secured by default. You should use a proxy for it (Traefik with Let's Encrypt certificates is my preference) or SSH tunnels. That's not part of this project.