Fix Bitnami MongoDB environment variables for Docker Compose
Fixes gh-41097
This commit is contained in:
@@ -46,7 +46,7 @@ class MongoBitnamiDockerComposeConnectionDetailsFactoryIntegrationTests extends
|
||||
assertThat(connectionString.getCredential().getUserName()).isEqualTo("root");
|
||||
assertThat(connectionString.getCredential().getPassword()).isEqualTo("secret".toCharArray());
|
||||
assertThat(connectionString.getCredential().getSource()).isEqualTo("admin");
|
||||
assertThat(connectionString.getDatabase()).isEqualTo("test");
|
||||
assertThat(connectionString.getDatabase()).isEqualTo("testdb");
|
||||
assertThat(connectionDetails.getGridFs()).isNull();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,5 +4,6 @@ services:
|
||||
ports:
|
||||
- '27017'
|
||||
environment:
|
||||
- 'MONGO_ROOT_USERNAME=root'
|
||||
- 'MONGO_ROOT_PASSWORD=secret'
|
||||
- 'MONGODB_ROOT_USERNAME=root'
|
||||
- 'MONGODB_ROOT_PASSWORD=secret'
|
||||
- 'MONGODB_DATABASE=testdb'
|
||||
|
||||
Reference in New Issue
Block a user