Skip to content

Commit

Permalink
Change to using environment variables in favor of CLI args.
Browse files Browse the repository at this point in the history
This also adds the DB encryption guards found in the Duplicati Docker file.
This fixes linuxserver#81
  • Loading branch information
kenkendk committed Aug 29, 2024
1 parent 2db279d commit ffd009a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ LABEL maintainer="aptalca"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config" \
TMPDIR=/run/duplicati-temp
TMPDIR=/run/duplicati-temp \
DUPLICATI__SERVER_DATAFOLDER=/config \
DUPLICATI__WEBSERVICE_PORT=8200 \
DUPLICATI__WEBSERVICE_INTERFACE=any \
DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=* \
DUPLICATI__DISABLE_DB_ENCRYPTION=true \
DUPLICATI__REQUIRE_DB_ENCRYPTION_KEY=true

RUN \
echo "**** install packages ****" && \
Expand Down
3 changes: 1 addition & 2 deletions root/etc/s6-overlay/s6-rc.d/svc-duplicati/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8200" \
cd /app/duplicati s6-setuidgid abc ./duplicati-server \
--webservice-interface=any --server-datafolder=/config --webservice-allowed-hostnames=* $CLI_ARGS
cd /app/duplicati s6-setuidgid abc ./duplicati-server $CLI_ARGS

0 comments on commit ffd009a

Please sign in to comment.