diff --git a/Dockerfile b/Dockerfile index 2f8d923..3bf496e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ ARG ALPINE_VERSION=3.18.3 ARG BASE_IMAGE=gitea.nulo.in/sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "nulo " +ENV POCKETBASE_SECRET 11111111111111111111111111111111 RUN apk add --no-cache pocketbase daemonize COPY ./pocketbased.sh /usr/local/bin/pocketbased diff --git a/pocketbased.sh b/pocketbased.sh index 7592873..5fcd92b 100755 --- a/pocketbased.sh +++ b/pocketbased.sh @@ -19,6 +19,7 @@ case $1 in --dir /srv/pocketbase/data \ --migrationsDir /srv/pocketbase/migrations \ --publicDir /srv/pocketbase/public \ - --hooksDir /srv/pocketbase/hooks + --hooksDir /srv/pocketbase/hooks \ + --encryptionEnv POCKETBASE_SECRET ;; esac