This is a simple example of how to run a MongoDB replica set using Docker Compose.
- Make bash available
make setup
- Make a mongo single instance
make mongo
- Make a mongo replicated set
make rs
make rs-init
Note: the bash script need all container instance running. simplify make rs twice to make it works and manually run script provided