aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJunyi <hunterdevil@foxmail.com>2022-08-09 12:44:54 +0800
committerJunyi <hunterdevil@foxmail.com>2022-08-12 13:21:26 +0800
commit70dc46866c2b854b1daef3cd4a684265bde4af45 (patch)
tree3cad22cbd3b38217e956fb0d251e73e17201d311 /server
parent6488a4b4eedbcd06338b50ad0362a8477511bdb4 (diff)
change application.properties $ standalone for separate postgres
Issue-ID: USECASEUI-405 Signed-off-by: Junyi Du <hunterdevil@foxmail.com> Change-Id: Icad7ec5441f71819ee27a23c2cb1b79ef8d45517
Diffstat (limited to 'server')
-rw-r--r--server/src/main/resources/application.properties6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties
index 02bce6dc..aee08718 100644
--- a/server/src/main/resources/application.properties
+++ b/server/src/main/resources/application.properties
@@ -22,9 +22,9 @@ spring.http.multipart.max-request-size=512MB
spring.servlet.multipart.max-request-size=512MB
## App DB Properties
-spring.datasource.url=jdbc:postgresql://localhost:5432/uui
-spring.datasource.username=uui
-spring.datasource.password=uui
+spring.datasource.url=jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:uui}
+spring.datasource.username=${POSTGRES_USERNAME:uui}
+spring.datasource.password=${POSTGRES_PASSWORD:uui}
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
spring.database.driver.classname=org.postgresql.Driver
spring.jpa.show-sql=false