File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ FROM eclipse-temurin:17-jre-alpine AS runtime
17
17
WORKDIR /app
18
18
19
19
RUN adduser -u 1001 --disabled-password --gecos "" appuser && \
20
- chown appuser:appuser /app
20
+ mkdir -p /app/data && \
21
+ chown -R appuser:appuser /app
21
22
22
23
COPY --from=builder --chown=appuser:appuser /build-workspace/build/libs/ai-dial-admin-backend*.jar ./app.jar
23
24
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ config.export.keyvault.type=vault
150
150
| datasource.vendor | DATASOURCE_VENDOR | H2 | Datasource vendor: <ul ><li >H2</li ><li >POSTGRES</li ><li >MS_SQL_SERVER</li ></ul > |
151
151
| datasource.auth.type | DATASOURCE_AUTH_TYPE | basic | Datasource auth type: <ul ><li >basic (username and password)</li ><li >azure (see [ Azure Configuration] ( #azure-configuration ) : azure.auth.type)</li ></ul > |
152
152
| h2.datasource.url | H2_DATASOURCE_URL | - | JDBC URL for H2 database connection |
153
- | | H2_FILE | ./testdb | H2 database file |
153
+ | | H2_FILE | ./data/ testdb | H2 database file |
154
154
| | H2_OPS | CIPHER=AES;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE | H2 database connection options |
155
155
| h2.datasource.masterKey | H2_DATASOURCE_MASTERKEY | - | Master key for H2 database encryption |
156
156
| h2.datasource.encryptedFileKey | H2_DATASOURCE_ENCRYPTEDFILEKEY | - | Encrypted file key for H2 database |
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ services:
17
17
METRICS_STORAGE_TOKEN : " myadmintoken"
18
18
CORE_CLIENT_URL : " http://core:8080"
19
19
DISABLE_SWAGGER_AUTHORIZATION : true
20
+ H2_FILE : ./data/testdb
20
21
H2_DATASOURCE_MASTER_KEY : t8+npcgNMiipR+kHMb8zXAjgA3IedCXC
21
22
H2_DATASOURCE_ENCRYPTED_FILE_KEY : 9vW1l/Eg+1J3YXpCsyR6AUI4ptMtI6pjkktePuUQts+wKVAauoP5CG21z5WTzp91xBcEww==
22
23
H2_DATASOURCE_PASSWORD : password
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ management.server.port=9464
94
94
datasource.vendor =${DATASOURCE_VENDOR:H2}
95
95
datasource.auth.type =${DATASOURCE_AUTH_TYPE:basic}
96
96
97
- h2.datasource.url =jdbc:h2:file:${H2_FILE:./testdb};${H2_OPS:CIPHER=AES;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE}
97
+ h2.datasource.url =jdbc:h2:file:${H2_FILE:./data/ testdb};${H2_OPS:CIPHER=AES;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE}
98
98
h2.datasource.driver-class-name =org.h2.Driver
99
99
h2.datasource.username =sa
100
100
h2.datasource.masterKey =${H2_DATASOURCE_MASTER_KEY}
You can’t perform that action at this time.
0 commit comments