Fix db ports
This commit is contained in:
parent
853245a857
commit
ec7fb1d9eb
2 changed files with 1 additions and 3 deletions
|
@ -19,8 +19,6 @@ services:
|
|||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=schools
|
||||
ports:
|
||||
- '5004:5432'
|
||||
networks:
|
||||
- docker_network
|
||||
volumes:
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue