Skip to content

williamlsh/mongo-deployments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB containerized deployments

This is a simple repository that shows you the simplest way to deploy Mongo Replica Sets and Mongo Sharded Cluster with Docker Compose.

Prerequisites

  • Docker and Docker Compose
  • GNU Make

How to run

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

Author

William

License

MIT

Releases

No releases published

Packages

No packages published