mongo-rep-set
mongo-rep-set copied to clipboard
A Dockerized MongoDB for creating a three node replica set across separate hosts.
Running sudo docker-compose build
All members of a replica set require the same [keyfile](http://docs.mongodb.org/manual/tutorial/generate-key-file/) for encrypted/authenticated communication between replica nodes. That file is currently static in this repo and copied over on container build....
With `debian:jessie`, the image size is humongous. Using a slim equivalent would save a lot of image space.
Key env
Updated run.sh to detect MONGO_KEY env var and replace keyfile with the environment variable value if the env var is present.
Docs needed.