Skip to content

This project allows you to create a MongoDB cluster using Docker Compose, which is helpful for development purposes.

Notifications You must be signed in to change notification settings

sushant9096/docker-mongodb-cluster

Repository files navigation

Mongo DB Docker Compose Cluster

This is a docker compose project to create a mongo db cluster with 3 nodes.

Note:

  • This project is for development purpose only. Do not use it in production.
  • Use LF line ending in your editor to avoid errors.

Instructions

  1. Clone this repository
  2. openssl must be installed on your machine
  3. Run the following command to generate cluster security key
openssl rand -base64 756 > security.key
  1. export the following environment variable
export DB_PASS=your_db_admin_password
export SYSTEM_PASS=your_system_admin_password
  1. Run the following command to create mongo cluster containers
docker-compose up -d
  1. Run the following command to finish cluster configuration
./init-cluster.sh

About

This project allows you to create a MongoDB cluster using Docker Compose, which is helpful for development purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages