DEPRECATED: this image is not supported any longer
Dockerfile to build a MongoDB container image, based on the official MongoDB docker image.
This image however does not properly map the user and group ID of the mongodb user, to the user and group ID on the host. As a result, files in shared volumes will be inaccessible by the host user.
The quickest way to get started is using docker-compose.
Start MongoDB using
Available Configuration Parameters
In addition to the official image, this image provides these environment variables
- DEBUG: Set this to
trueto enable entrypoint debugging.
- USERMAP_UID: Sets the user ID for user
mongodbto the specified user ID. Defaults to
- USERMAP_GID: Sets the group ID for user
mongodbto the specified group ID. Defaults to