<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 '6.0.5-jammy')-
Image versions 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.toxiproxy.proxies.mongodb.enabledEnables both creation of the container with ToxiProxy TCP proxy and a proxy to theembedded-mongodbcontainer.
-
embedded.mongodb.host -
embedded.mongodb.port -
embedded.mongodb.username -
embedded.mongodb.password -
embedded.mongodb.database -
embedded.mongodb.toxiproxy.host -
embedded.mongodb.toxiproxy.port -
embedded.mongodb.networkAlias -
embedded.mongodb.internalPort -
Bean
ToxiproxyContainer.ContainerProxy mongodbContainerProxy