fix(backend): Add postgres run configuration for persistent database

This commit is contained in:
2025-09-07 09:25:11 +02:00
parent ea56f53f69
commit 83f1fa71b6
6 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
spring:
application:
name: legalconsenthub
datasource:
hikari:
auto-commit: false
url: jdbc:postgresql://localhost:5432/legalconsenthub
username: legalconsenthub
password: legalconsenthub
driver-class-name: org.postgresql.Driver
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: validate
show-sql: true
properties:
hibernate:
format_sql: true
jdbc:
batch_size: 100
order_inserts: true
enable_lazy_load_no_trans: true
liquibase:
enabled: true
drop-first: false
change-log: classpath:/db/changelog/db.changelog-master.yaml
default-schema: public
sql:
init:
platform: postgresql
logging:
level:
org:
springframework:
security: TRACE
oauth2: TRACE

View File

@@ -0,0 +1 @@
testcontainers.reuse.enable=true