Switch to file-based H2 DB

Implement development specific config
This commit is contained in:
grimsi
2024-06-10 13:34:11 +02:00
parent 273e9b0a07
commit 042c326380
7 changed files with 55 additions and 28 deletions
+10 -1
View File
@@ -19,10 +19,19 @@ spring:
# Workaround for https://github.com/vaadin/hilla/issues/842
devtools.restart.additional-exclude: dev/hilla/openapi.json
jpa:
defer-datasource-initialization: true
# defer-datasource-initialization: true
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: update
mustache:
check-template-location: false
sql.init.mode: always
datasource:
username: gfadmin
password: gameyfin
db-name: gameyfin_db
url: jdbc:h2:file:./db/${spring.datasource.db-name}
driverClassName: org.h2.Driver
application:
name: Gameyfin