<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 'mongodb/mongodb-community-server:8.0.4-ubuntu2204')
-
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.enabled
Enables both creation of the container with ToxiProxy TCP proxy and a proxy to theembedded-mongodb
container.
-
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