Last active
September 21, 2018 08:28
-
-
Save rrdelaney/3efbb9cc6951a714624264b30e57ebad to your computer and use it in GitHub Desktop.
RethinkDB Cluster - Docker 1.12 Swarm Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create -d overlay skynet | |
docker service create --name rethink-master --network skynet -p 8080:8080 rethinkdb rethinkdb --bind all | |
docker service create --name rethink-slave --mode global --mount type=bind,source=/var/lib/rethinkdb,target=/data --network skynet rethinkdb rethinkdb --bind all -j rethink-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't rethink master need --join too. What happens when master is restarted.