Fix db ports

This commit is contained in:
Mikołaj Pich 2023-09-18 22:53:14 +02:00
parent 853245a857
commit ec7fb1d9eb
2 changed files with 1 additions and 3 deletions

View file

@ -19,8 +19,6 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=schools
ports:
- '5004:5432'
networks:
- docker_network
volumes:

View file

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