Skip to content

mongo-express connection issue with mongo #129

@heckCode

Description

@heckCode

I am deploying mongo express on a kubernetes cluster and is not connecting to mongodb container inside the pod. In the mongo-express documentation ithere is a list of variables we need to configure one of which is ME_CONFIG_MONGODB_SERVER to establish the connection. It turns out that when I kubectl exec into the mongo-express container it has an environment variable inside there that is NOT in the documentation and that variable is overriding the connection. The variable is ME_CONFIG_MONGODB_URL=mongodb://mongo:27017. When I set the variable to the same value of the variable ME_CONFIG_MONGODB_SERVER=mongodb-service, it solved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions