build: move postgres credentials to env

This commit is contained in:
2026-05-17 20:49:04 +01:00
parent 09ec5cf09c
commit 7eb4f1d34e
3 changed files with 13 additions and 11 deletions

View File

@@ -0,0 +1,4 @@
spring.datasource.url=jdbc:postgresql://postgres:5432/vodSystem
spring.datasource.username=${POSTGRES_USER}
spring.datasource.password=${POSTGRES_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver

View File

@@ -1,13 +1,12 @@
# Database
spring.datasource.url=jdbc:postgresql://localhost:5432/vodSystem
spring.datasource.username=myuser
spring.datasource.password=mypassword
spring.datasource.username=${POSTGRES_USER}
spring.datasource.password=${POSTGRES_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.sql.init.mode=always
spring.sql.init.schema-locations=classpath:db/schema.sql
#spring.sql.init.data-locations=classpath:db/data.sql
# Frontend
frontend.url=http://localhost:5173