Skip to content

ocastastudios/docker-mongo-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inititialize a Database

Docker image to run once to create a new mongo database with a new user.

Environment variables:

- HOST
- ADMIN_USER
- ADMIN_PASSWORD
- AUTH_DATABASE
- NEW_DATABASE
- NEW_USER
- NEW_PASSWORD

All except AUTH_DATABASE are mandatory which defaults to admin

E.g.

docker run -e HOST=rs/mymongo-1:27017,mymongo-2:27017 -e ADMIN_USER=admin -e ADMIN_PASSWORD=mypass -e AUTH_DATABASE=rudolph -e NEW_DATABASE=newdb1 -e NEW_USER=newuser1 -e NEW_PASSWORD=password --link mongodb -d ocasta/mongo-init

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages