Skip to content

Dockerized mongoDB with data volume and docker-compose file. πŸ“¦πŸƒ

Notifications You must be signed in to change notification settings

tonycituk/dockerized-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dockerized mongoDB πŸ“¦πŸƒ

Rename your database

docker-compose.yml

MONGO_INITDB_DATABASE: <database>

mongo-init.js

databaseName = '<database>'

Rename and set password for your readWrite user

mongo-init.js

db.createUser({
    user: '<user-readWrite>',
    pwd: '<pass-readWrite>',
    roles: [
        {
            role: 'readWrite',
            db: databaseName,
        }
    ]
});

Let it run!

docker-compose up -d

About

Dockerized mongoDB with data volume and docker-compose file. πŸ“¦πŸƒ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published