khezen / docker-mongo

MongoDB Docker image embedding RocksDB storage engine
33 stars 14 forks source link
docker dockerfile mongo mongod mongos rocksdb wiredtiger

Supported tags and respective Dockerfile links

What is MongoDB?

MongoDB (from "humongous") is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released under a combination of the GNU Affero General Public License and the Apache License, MongoDB is free and open-source software.

wikipedia.org/wiki/MongoDB

logo

rocksdb

This image embed rocksdb next to wiredTiger and mmapv1 storage engines.


How To Use

run examples

using config file

docker run -d -p 27017:27017 khezen/mongo:latest
docker run -d -p 27017:27017 -v /data/mongo:/data/db -v /etc/mongo:/etc/mongo khezen/mongo:latest
docker run -d -it -p 27017:27017 khezen/mongo:latest "mongod --config etc/mongo/config.yml"

using command and options

docker run -d -it -p 27017:27017 -v /data/mongo/shard1:/data/db khezen/mongo:latest "mongod --port 27017 --shardsvr --replSet shard1 --dbpath /data/db"

config

start with this config file by default. For more configuration options have a look at the documentation

cmd

The image embed the following binaries:

User Feedback

Issues

If you have any problems with or questions about this image, please ask for help through a GitHub issue.