Skip to content

kallqvist/rethinkdb-docker-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rethinkdb-docker-cluster

For auto-build image, head over to docker hub: https://hub.docker.com/r/kallqvist/rethinkdb-cluster/

A docker image to make RethinkDb clustering a bit easier and more container friendly. This image is built on top of rethinkdb:latest and adds a docker-entrypoint.sh that dynamically tries to set canonical IP and join IP based on docker links and hostnames.

Basic usage is either (only for DNS-based service discovery):

  • Start one container and set environment variable "JOIN" to a hostname able to reach the container's scaled nodes (e.g usually the container name)
  • Simply scale this service to add more nodes

or:

  • Manually start nodes as you wish
  • Add them to cluster by setting their environment variable "JOIN" to either hostname or IP of an already running node.

Check https://github.com/kallqvist/rethinkdb-docker-cluster/blob/master/docker-compose.yml for more information.

Container data is written to /data, each container must have a unique storage path if host bind mounts are used to not risk data corruption.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages