Public | Automated Build

Last pushed: 16 hours ago
Short Description
MongoDB 3.X with WiredTiger
Full Description

Dockerized MongoDB 3.X with WiredTiger

A Docker MongoDB server.

Automatic build details at https://registry.hub.docker.com/u/konstruktoid/mongodb/

docker run --cap-drop=all --cap-add={setgid,setuid} -p 27017:27017 -d konstruktoid/mongodb
mongo --port 27017 --eval "printjson(db.hostInfo())"

TLS/SSL Configuration

docker run --cap-drop=all --cap-add={setgid,setuid} -p 27017:27017 -d konstruktoid/mongodb --sslMode requireSSL --sslPEMKeyFile /etc/ssl/mongodb.pem
mongo --ssl --sslAllowInvalidCertificates --port 27017 --eval 'printjson(db.hostInfo())'

docker-compose

docker-compose up -d --build --remove-orphans
docker-compose scale mongo=3
docker inspect --format '{{ .NetworkSettings.Networks.mongodbbuild_default.IPAddress }}' $(docker ps -q)
docker exec -ti mongodbbuild_mongo_1 /bin/bash

The previous replica set Dockerfile and information is available in branch replicaset, but that is very old code.

Docker Pull Command
Owner
konstruktoid
Source Repository