From e24a6f63986ba3a8a8a831d125f44fcb61072de9 Mon Sep 17 00:00:00 2001 From: Pankaj Chaudhari <70714995+pankajpc15@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:34:45 +0530 Subject: [PATCH] Update application-postgres.properties application-postgresql file update with db container name --- src/main/resources/application-postgres.properties | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application-postgres.properties b/src/main/resources/application-postgres.properties index 60889b43c..64d71b4d7 100644 --- a/src/main/resources/application-postgres.properties +++ b/src/main/resources/application-postgres.properties @@ -1,6 +1,11 @@ database=postgres -spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost/petclinic} +#spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost/petclinic} +#spring.datasource.username=${POSTGRES_USER:petclinic} +#spring.datasource.password=${POSTGRES_PASS:petclinic} +# SQL is written to be idempotent so this is safe +#spring.sql.init.mode=always + +spring.datasource.url=jdbc:postgresql://db/petclinic spring.datasource.username=${POSTGRES_USER:petclinic} spring.datasource.password=${POSTGRES_PASS:petclinic} -# SQL is written to be idempotent so this is safe spring.sql.init.mode=always