Created
September 23, 2016 15:49
-
-
Save lucj/214fb6521c2f2cded3a7385beeee8735 to your computer and use it in GitHub Desktop.
create_mongors.sh
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 5 traxxs/mongors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment