Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Variable Example Description
MONGO_URL foo.bar:27027 URL of the mongoDB instance, including port
MONGO_ADMIN_USER admin Admin username (with user and db creation privileges)
MONGO_ADMIN_PASS foo Admin password
MONGO_DB_NAME newdb Name of the database to create
MONGO_USER user Name of the new user to create
MONGO_PASS pass Password for the new user

About

Simple container to create a user and a DB in a mongoDB instance

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages