pom.xml
<dependency>
<groupId>com.playtika.testcontainers</groupId>
<artifactId>embedded-mongodb</artifactId>
<scope>test</scope>
</dependency>
-
embedded.mongodb.enabled
(true|false, default is 'true')
-
embedded.mongodb.reuseContainer
(true|false, default is 'false')
-
embedded.mongodb.dockerImage
(default is set to 'mongo:4.2.0-bionic')
-
You can pick wanted version on dockerhub
-
-
embedded.mongodb.host
(default is localhost)
-
embedded.mongodb.port
(default is 27017)
-
embedded.mongodb.username
-
embedded.mongodb.password
-
embedded.mongodb.database
(default is test)
-
embedded.mongodb.host
-
embedded.mongodb.port
-
embedded.mongodb.username
-
embedded.mongodb.password
-
embedded.mongodb.database