We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6dd56d commit 6d094b8Copy full SHA for 6d094b8
src/main/resources/application.yml
@@ -1,9 +1,9 @@
1
spring:
2
datasource:
3
driver-class-name: org.postgresql.Driver
4
- url: jdbc:postgresql://localhost:5432/mydb
5
- password: postgres
6
- username: postgres
+ url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/mydb
+ password: ${POSTGRES_PASSWORD:postgres}
+ username: ${POSTGRES_USERNAME:postgres}
7
8
druid:
9
initial-size: 5
0 commit comments