change default config to store h2 database in the same directory as the jar

This commit is contained in:
Athou
2023-06-04 07:45:01 +02:00
parent ea6c83ca33
commit e5b0eb426c
3 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ EXPOSE 8082
RUN mkdir -p /commafeed/data RUN mkdir -p /commafeed/data
VOLUME /commafeed/data VOLUME /commafeed/data
ENV CF_SESSION_PATH=/commafeed/data/sessions ENV CF_SESSION_PATH=/commafeed/data/sessions
ENV CF_DATABASE_URL=jdbc:h2:/commafeed/data/db
COPY commafeed-server/config.yml.example config.yml COPY commafeed-server/config.yml.example config.yml
COPY commafeed-server/target/commafeed.jar . COPY commafeed-server/target/commafeed.jar .

View File

@@ -92,7 +92,7 @@ app:
database: database:
driverClass: org.h2.Driver driverClass: org.h2.Driver
url: jdbc:h2:./target/example url: jdbc:h2:./target/commafeed
user: sa user: sa
password: sa password: sa
properties: properties:

View File

@@ -93,7 +93,7 @@ app:
database: database:
driverClass: org.h2.Driver driverClass: org.h2.Driver
url: jdbc:h2:/commafeed/data/db url: jdbc:h2:./db/commafeed
user: sa user: sa
password: sa password: sa
properties: properties: