cloyne / docker-mongodb

Base image for MongoDB server.

Home Page:https://hub.docker.com/r/tozd/mongodb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tozd/mongodb

https://gitlab.com/tozd/docker/mongodb

Available as:

Description

Image providing MongoDB as a service.

Different Docker tags provide different MongoDB versions.

You should make sure you mount data volume (/var/lib/mongodb) so that you do not lose database data when you are recreating a container. If a volume is empty, image will initialize it at the first startup.

/var/lib/mongodb/mongodb.conf is used for configuration and you can modify it as needed. Because it is inside the data volume it is initialized the first time to defaults if the volume is empty.

If you are extending this image, you can add a script /etc/service/mongod/run.initialization which will be run at a container startup, after the container is initialized, but before the MongoDB daemon is run.

About

Base image for MongoDB server.

https://hub.docker.com/r/tozd/mongodb/


Languages

Language:Dockerfile 80.1%Language:Shell 19.9%