Skip to content

Commit 833f837

Browse files
committed
fix: set sensible defaults for postgres credentials when running locally
1 parent 27d7ce5 commit 833f837

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/main/resources/application.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ postgres {
1818
host = ${?POSTGRES_HOST}
1919
port = "5432"
2020
port = ${?POSTGRES_PORT}
21-
username = null
21+
username = "postgres"
2222
username = ${?POSTGRES_USERNAME}
23-
password = null
23+
password = "postgres"
2424
password = ${?POSTGRES_PASSWORD}
2525
}
2626

src/test/resources/application.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ mongodb {
66
password = null
77
}
88

9+
postgres {
10+
database = "sdkman"
11+
host = "127.0.0.1"
12+
port = "5432"
13+
username = "postgres"
14+
password = "postgres"
15+
}
16+
917
server {
1018
port = 8080
1119
host = "0.0.0.0"
12-
}
20+
}

0 commit comments

Comments
 (0)