diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/config/TestContainersConfig.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/config/TestContainersConfig.kt index 7feac08..145eadd 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/config/TestContainersConfig.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/config/TestContainersConfig.kt @@ -19,5 +19,16 @@ class TestContainersConfig { .withPassword("legalconsenthub") .withCreateContainerCmdModifier { cmd -> cmd.withName("legalconsenthub-test-${System.currentTimeMillis()}") + // Comment this in to be able to connect to the database, needs to be commented our during tests + // cmd.withHostConfig( + // HostConfig().apply { + // this.withPortBindings( + // PortBinding( + // Ports.Binding.bindPort(5432), + // ExposedPort(5432), + // ), + // ) + // }, + // ) }.withReuse(true) }