Skip to content

Commit

Permalink
added env
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Jan 30, 2024
1 parent 75bd3e7 commit 0bd0ad1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dinky-admin/src/main/resources/application-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

spring:
datasource:
username: postgres
password: dinky
username: ${POSTGRES_USER:dinky}
password: ${POSTGRES_PASSWORD:dinky}
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/dinky?stringtype=unspecified
# The POSTGRES_ADDR variable is not officially provided. If you use docker, please manually add an env to support it.
url: jdbc:postgresql://${POSTGRES_ADDR:localhost:5432}/${POSTGRES_DB:dinky}?stringtype=unspecified

0 comments on commit 0bd0ad1

Please sign in to comment.