Update application-postgres.properties

application-postgresql file update with db container name
This commit is contained in:
Pankaj Chaudhari 2024-09-06 11:34:45 +05:30 committed by GitHub
parent 91328af12d
commit e24a6f6398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,11 @@
database=postgres 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.username=${POSTGRES_USER:petclinic}
spring.datasource.password=${POSTGRES_PASS:petclinic} spring.datasource.password=${POSTGRES_PASS:petclinic}
# SQL is written to be idempotent so this is safe
spring.sql.init.mode=always spring.sql.init.mode=always