Skip to content

Docker image documentation adjustment #608

@Serzhs

Description

@Serzhs

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`

image

Thanks for listening!

Best Regards
Janis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions