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 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)