tericcabrel / blog-tutorials

Sample code of my blog tutorials
https://blog.tericcabrel.com
361 stars 282 forks source link

[help] setup username and password and default db #3

Closed u007 closed 2 years ago

u007 commented 2 years ago

hi,

sorry to trouble you , great example ! :)

i tried to setup username n password by adding

environment:
      - "MONGO_INITDB_ROOT_USERNAME=root"
      - "MONGO_INITDB_ROOT_PASSWORD=example"

but i could not login via my mongodb client if i didnt set this, i can go into the instant mongo1 without any userid n password

tericcabrel commented 2 years ago

Hi Sorry to reply late, but have you managed to solve your issue? What blog post is this issue about?

u007 commented 2 years ago

sorry i cant recall anymore lol