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",