From 0bd0ad100e66b006e8c1e9e5591ac692e0f1452b Mon Sep 17 00:00:00 2001 From: Zzm0809 <934230207@qq.com> Date: Tue, 30 Jan 2024 13:01:07 +0800 Subject: [PATCH] added env --- dinky-admin/src/main/resources/application-pgsql.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dinky-admin/src/main/resources/application-pgsql.yml b/dinky-admin/src/main/resources/application-pgsql.yml index 8a1ebb9e34..eff2bdf64a 100644 --- a/dinky-admin/src/main/resources/application-pgsql.yml +++ b/dinky-admin/src/main/resources/application-pgsql.yml @@ -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 \ No newline at end of file + # 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 \ No newline at end of file