Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongo-express connection issue with mongo #129

Open
heckCode opened this issue Dec 7, 2024 · 0 comments
Open

mongo-express connection issue with mongo #129

heckCode opened this issue Dec 7, 2024 · 0 comments

Comments

@heckCode
Copy link

heckCode commented Dec 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant