Skip to content

Commit 6d094b8

Browse files
committed
db parameters
1 parent b6dd56d commit 6d094b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/resources/application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
spring:
22
datasource:
33
driver-class-name: org.postgresql.Driver
4-
url: jdbc:postgresql://localhost:5432/mydb
5-
password: postgres
6-
username: postgres
4+
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/mydb
5+
password: ${POSTGRES_PASSWORD:postgres}
6+
username: ${POSTGRES_USERNAME:postgres}
77

88
druid:
99
initial-size: 5

0 commit comments

Comments
 (0)