-
Notifications
You must be signed in to change notification settings - Fork 652
Closed
Description
Hello, I had difficulty to understand how to connect Database from mongoose while using stack.yml
example in mongo docker docs.
I would suggest to add additional information about how to connect database from services like Mongoose or MongoClient it could look like this:
For connecting to database from services like Mongoose you need to open port 27017
within your stack.yml
file under mongo
service and in url set option authSource=admin
Example:
`mongodb://root:example@localhost:27017/<db_name>?authSource=admin`
Thanks for listening!
Best Regards
Janis
matissoz, MrMarex, nick-r-o-s-e, naurisievins, gastons-tiltins and 12 more
Metadata
Metadata
Assignees
Labels
No labels