default location for db, linked config file to volume mount

This commit is contained in:
Alex Phillips 2022-02-05 15:41:00 -05:00
parent 90677439e5
commit fa443bcdde
4 changed files with 9 additions and 3 deletions

View File

@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
ENV BUDGE_DATABASE=/config/budge.db
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \

View File

@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
ENV BUDGE_DATABASE=/config/budge.db
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \

View File

@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
ENV BUDGE_DATABASE=/config/budge.db
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \

View File

@ -5,10 +5,10 @@ cd /app/budge/backend
touch /app/budge/backend/budge.sqlite
# copy config
[[ ! -e /config/budge.db ]] && \
mv /app/budge/backend/budge.sqlite
[[ ! -e /config/config.js ]] && \
mv /app/budge/backend/build/ormconfig.js /config/config.js
ln -sf /config/budge.db /app/budge/backend/budge.sqlite
ln -sf /config/config.js /app/budge/backend/build/ormconfig.js
# permissions
chown -R abc:abc \