Skip to content

Instantly share code, notes, and snippets.

@lmmendes
Created March 25, 2020 00:26
Show Gist options
  • Save lmmendes/75f198189238508d9ce6d5c3389e5961 to your computer and use it in GitHub Desktop.
Save lmmendes/75f198189238508d9ce6d5c3389e5961 to your computer and use it in GitHub Desktop.

Revisions

  1. lmmendes created this gist Mar 25, 2020.
    7 changes: 7 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    rs.initiate( {
    _id : "rs0",
    members: [
    { _id: 0, host: "mongo-0:27017" },
    { _id: 1, host: "mongo-1:27017" }
    ]
    });