Created
September 23, 2016 15:58
-
-
Save lucj/66ec76ca5a959725c58d8c8044511400 to your computer and use it in GitHub Desktop.
mongors.dab
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 --driver overlay db-net | |
docker service create --name rs1 --network db-net mongo:3.2 mongod --replSet "rs0" | |
docker service create --name rs2 --network db-net mongo:3.2 mongod --replSet "rs0" | |
docker service create --name rs3 --network db-net mongo:3.2 mongod --replSet "rs0" | |
docker service create --name rs --network db-net --restart-max-attempts 10 lucj/mongors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment