Sign inSign up

imagames/mongo-userdb-create

By imagames

•Updated over 7 years ago

Oneshot container to create a user and a DB in an authorization-enabled mongoDB instance

Image
0

231

imagames/mongo-userdb-create repository overview

⁠docker-mongo-db-create

Docker image that connects to a specified mongo instance, creates a database, and an user with owner role for that database.

⁠How to

This image requires the following environment variables, all of which are mandatory:

VariableExampleDescription
MONGO_URLfoo.bar:27027URL of the mongoDB instance, including port
MONGO_ADMIN_USERadminAdmin username (with user and db creation privileges)
MONGO_ADMIN_PASSfooAdmin password
MONGO_DB_NAMEnewdbName of the database to create
MONGO_USERuserName of the new user to create
MONGO_PASSpassPassword for the new user

Tag summary

Content type

Image

Digest

Size

34.4 MB

Last updated

over 7 years ago

docker pull imagames/mongo-userdb-create