lucidfabrics/mongo-rs

By lucidfabrics

Updated 8 months ago

MongoDB replica set with authentication and user initialization. Ideal for dev/testing environments.

Image
Databases & Storage
Developer Tools
0

26

This Docker image sets up a MongoDB replica set with authentication and user initialization, perfect for development and testing. It includes a custom script to dynamically configure replica sets and users.

How to Use:

1.	Pull the image: docker pull lucidfabrics/mongo-rs
2.	Start the container:
docker run -d --name mongo-rs \
  -e MONGO_RS=rs0 \
  -e MONGO_AUTHDB=mydb \
  -e MONGO_USER=root \
  -e MONGO_PASSWORD=password \
  -p 27017:27017 lucidfabrics/mongo-rs

For more details, visit my GitHub https://github.com/wmehanna/mongo-rs.

Docker Pull Command

docker pull lucidfabrics/mongo-rs