Skip to content

Instantly share code, notes, and snippets.

@crapthings
Last active July 5, 2019 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crapthings/75307b0182d885fbe4a6a8e4781c5f53 to your computer and use it in GitHub Desktop.
Save crapthings/75307b0182d885fbe4a6a8e4781c5f53 to your computer and use it in GitHub Desktop.
wait && mongo --host mongo1 --port 27017 --eval "rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: 'mongo1:27017' }, { _id: 1, host: 'mongo2:27017' }, { _id: 2, host: 'mongo3:27017' } ] })"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment