{"push_id":546429963,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"25ee8a85fcb3b35954f8aa98d04b1a5a354321d8","before":"aed68187b7eee06588dd10d11e8b815a22a0c537","commits":[{"sha":"25ee8a85fcb3b35954f8aa98d04b1a5a354321d8","author":{"email":"469bbd59a06d5d2535200714095ffd1bed4315f4@gmail.com","name":"Jaigouk Kim"},"message":"wip\n\n#### create auth\n\nAs [official mongodb doc](http://docs.mongodb.org/manual/tutorial/deploy-replica-set-with-auth/) says, launch 1 mongodb first. And then, create users and passwords. To fix this step, we need to save data externally. For example, we can mount dir as mentioned [here](https://medium.com/@arunoda/production-quality-mongodb-setup-with-docker-65136a4a9d8)\n\n#### Initiate ReplicaSet\n\nOnce the container is running you can initialize the ReplicaSet with the following steps:\n\n* Access shell of container with `docker exec -it mongodb bash`\n* Access mongo shell with `mongo`\n* `rs.initiate()` to initiate ReplicaSet\n* Use the output of previous step to grab the 'me' (hostname of the machine) property to add to ReplicaSet:\n\t* port 27018: `rs.add('9488f884u84:27018')`\n\t* port 27019: `rs.add('9488f884u84:27019')`\n* You can use `rs.status()` to see if your ReplicaSet has started successfully","distinct":true,"url":"https://api.github.com/repos/jaigouk/coreos-mongodb/commits/25ee8a85fcb3b35954f8aa98d04b1a5a354321d8"}]}