- Put the
docker-compose.yml
,initiate-replica.js
andmongodb-keyfile
in the same directory (e.g. project root) - Run
docker-compose up
(ordocker-compose up -d
for detached mode)
- you might have to modify the permissions on your
keyfile
, in order to do so you have to runchmod 600 mongodb-keyfile
(remember to use Git Bash and not just a regular console)