MongoDB logo

MongoDB 6 Docker Image Specifications

MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemata. MongoDB is developed by MongoDB Inc., and is published under a combination of the Server Side Public License and the Apache License.

Stacks using this Image

Ports

MongoDB Wire Protocol

27017

The MongoDB Wire protocol is used to communicate with clients.

Volumes

Data

/data/db

This volume contains all the database data.

Config

/data/configdb

This volume will be read for mongodb configuration files.

Variables

MONGO_INITDB_ROOT_USERNAME

undefined

The username of the root user. Will only get applied on first start.

MONGO_INITDB_ROOT_PASSWORD

undefined

The password of the root user. Will only get applied on first start.

MONGO_INITDB_DATABASE

undefined

The name of the first database that gets created. Will only get applied on first start.

MONGO_INITDB_USER

undefined

The user of the first database that gets created. Will only get applied on first start.

MONGO_INITDB_PWD

undefined

The password of the first database user that gets created. Will only get applied on first start.