Class EmbeddedPostgreSQLBootstrapConfiguration
java.lang.Object
com.playtika.testcontainer.postgresql.EmbeddedPostgreSQLBootstrapConfiguration
@Configuration
@ConditionalOnExpression("${embedded.containers.enabled:true}")
@AutoConfigureAfter(com.playtika.testcontainer.common.spring.DockerPresenceBootstrapConfiguration.class)
@ConditionalOnProperty(name="embedded.postgresql.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(PostgreSQLProperties.class)
public class EmbeddedPostgreSQLBootstrapConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.testcontainers.containers.PostgreSQLContainerpostgresql(org.springframework.core.env.ConfigurableEnvironment environment, PostgreSQLProperties properties, Optional<org.testcontainers.containers.Network> network)
-
Constructor Details
-
EmbeddedPostgreSQLBootstrapConfiguration
public EmbeddedPostgreSQLBootstrapConfiguration()
-
-
Method Details
-
postgresql
@Bean(name="embeddedPostgreSql", destroyMethod="stop") public org.testcontainers.containers.PostgreSQLContainer postgresql(org.springframework.core.env.ConfigurableEnvironment environment, PostgreSQLProperties properties, Optional<org.testcontainers.containers.Network> network)
-