Skip to content
rbonwebPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Docker Setup

Run without authentication:

rs.initiate({ _id: "rs0", members: [{ _id: 0, host: "localhost:27017" }] })
db.createUser({
  user: "admin",
  pwd: "securepassword123", // Use a strong password
  roles: [ { role: "root", db: "admin" } ]
})

Start again with authentication:

mongosh --port 27017 -u admin -p securepassword123 --authenticationDatabase admin

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages