change application.properties $ standalone for separate postgres
[usecase-ui/server.git] / server / src / main / resources / application.properties
index 02bce6d..aee0871 100644 (file)
@@ -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