mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
change default config to store h2 database in the same directory as the jar
This commit is contained in:
@@ -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 .
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user