build: move postgres credentials to env
This commit is contained in:
4
src/main/resources/application-dev.properties
Normal file
4
src/main/resources/application-dev.properties
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user