Skip to content

Latest commit

 

History

History
 
 

mongodb-replica-set

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

MongoDB replica set

This project contains scripts to create a recplica set in MongoDB without hassle

Prerequisites

To make this work, you must have Docker and Docker-compose installed on your computer

Create the replica set

./dbstart.sh

Connect to the primary docker instance

docker exec -it mongo1 mongo

Shutdown the replica set

docker-compose down