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

Service connection for bitnami mongodb fails to connect #41097

Closed
mroche89 opened this issue Jun 13, 2024 · 0 comments
Closed

Service connection for bitnami mongodb fails to connect #41097

mroche89 opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@mroche89
Copy link

MongoEnvironment in org.springframework.boot.docker.compose.service.connection.mongo references the wrong env variables for bitnami mongodb. See bitnami docs -> https://hub.docker.com/r/bitnami/mongodb

this.username = env.getOrDefault("MONGO_INITDB_ROOT_USERNAME", env.get("MONGO_ROOT_USERNAME"));
this.password = env.getOrDefault("MONGO_INITDB_ROOT_PASSWORD", env.get("MONGO_ROOT_PASSWORD"));
this.database = env.get("MONGO_INITDB_DATABASE");

username should be MONGODB_ROOT_USERNAME
password should be MONGODB_ROOT_PASSWORD
database should be MONGODB_DATABASE

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

No branches or pull requests

4 participants