This is a simple repository that shows you the simplest way to deploy Mongo Replica Sets and Mongo Sharded Cluster with Docker Compose.
- Docker and Docker Compose
- GNU Make
Before following the following steps, clone this repository to your local machine.
To run a Mongo Replica Set with 3 nodes and 1 arbiter:
cd replica-set
sudo make all
The MongoDB cluster is composed of:
- Replica set of config servers with 3 nodes
- Replica set of shards with 3 nodes
- A mongos router
To run a Mongo Cluster:
cd sharded-cluster
sudo make all
William
MIT