refactor: Add default value to db host

This commit is contained in:
Constantin Simonis 2025-02-12 11:35:57 +01:00
parent a958d9f6ac
commit 0836830df2
No known key found for this signature in database
GPG key ID: 758DD9C506603183

View file

@ -1,4 +1,4 @@
spring.datasource.url=jdbc:postgresql://${DB_HOST}:5432/postgresdb spring.datasource.url=jdbc:postgresql://${DB_HOST:-localhost}:5432/postgresdb
spring.datasource.username=postgres_user spring.datasource.username=postgres_user
spring.datasource.password=postgres_pass spring.datasource.password=postgres_pass
server.port=8080 server.port=8080