From 896902f59048a13ba0d4d00470f3f5b99e891330 Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Fri, 26 Dec 2025 10:23:57 +0100 Subject: [PATCH] fix: Add comment for testcontainer exposed port --- .../legalconsenthub/config/TestContainersConfig.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) }