From ec7fb1d9eb425971e3eee740575bf9bfb4855f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Mon, 18 Sep 2023 22:53:14 +0200 Subject: [PATCH] Fix db ports --- docker-compose.yaml | 2 -- src/main/kotlin/io/github/wulkanowy/schools/DatabaseFactory.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 08423f7..f4d5477 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -19,8 +19,6 @@ services: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=schools - ports: - - '5004:5432' networks: - docker_network volumes: diff --git a/src/main/kotlin/io/github/wulkanowy/schools/DatabaseFactory.kt b/src/main/kotlin/io/github/wulkanowy/schools/DatabaseFactory.kt index 05267a1..7e1cb26 100644 --- a/src/main/kotlin/io/github/wulkanowy/schools/DatabaseFactory.kt +++ b/src/main/kotlin/io/github/wulkanowy/schools/DatabaseFactory.kt @@ -11,7 +11,7 @@ object DatabaseFactory { fun init() { val host = System.getenv("DB_HOST") ?: "localhost" val database = Database.connect( - url = "jdbc:pgsql://$host:5004/schools", + url = "jdbc:pgsql://$host:5432/schools", driver = "com.impossibl.postgres.jdbc.PGDriver", user = "postgres", password = "postgres",