1 primary (Mongo1)
2 secondary(Mongo2 and Mongo3) , with mongo3 acting as a hidden secondary
SERVER | PORT |
---|---|
Mongo1 | 7017 |
Mongo2 | 8017 |
Mongo3 | 9017 |
credits: https://github.com/yeasy/docker-compose-files/tree/master/mongo_cluster
Mounts {PWD}/db-data