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_USER=postgres
|
||||||
- POSTGRES_PASSWORD=postgres
|
- POSTGRES_PASSWORD=postgres
|
||||||
- POSTGRES_DB=schools
|
- POSTGRES_DB=schools
|
||||||
ports:
|
|
||||||
- '5004:5432'
|
|
||||||
networks:
|
networks:
|
||||||
- docker_network
|
- docker_network
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -11,7 +11,7 @@ object DatabaseFactory {
|
||||||
fun init() {
|
fun init() {
|
||||||
val host = System.getenv("DB_HOST") ?: "localhost"
|
val host = System.getenv("DB_HOST") ?: "localhost"
|
||||||
val database = Database.connect(
|
val database = Database.connect(
|
||||||
url = "jdbc:pgsql://$host:5004/schools",
|
url = "jdbc:pgsql://$host:5432/schools",
|
||||||
driver = "com.impossibl.postgres.jdbc.PGDriver",
|
driver = "com.impossibl.postgres.jdbc.PGDriver",
|
||||||
user = "postgres",
|
user = "postgres",
|
||||||
password = "postgres",
|
password = "postgres",
|
||||||
|
|
Loading…
Reference in a new issue