diff --git a/Containers/borgbackup/Dockerfile b/Containers/borgbackup/Dockerfile index 9b733788..cf48f52c 100644 --- a/Containers/borgbackup/Dockerfile +++ b/Containers/borgbackup/Dockerfile @@ -16,6 +16,7 @@ VOLUME /root COPY --chmod=770 *.sh / ENTRYPOINT ["/start.sh"] +USER root LABEL com.centurylinklabs.watchtower.monitor-only="true" ENV BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6" diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index 5816a498..c7f0d234 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -7,4 +7,7 @@ RUN set -ex; \ apk add --no-cache tzdata; \ cat /tmp/clamav.conf | tee -a /etc/clamav/clamd.conf; \ rm /tmp/clamav.conf + +USER clamav + LABEL com.centurylinklabs.watchtower.monitor-only="true" diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index 01c0ff29..5a98d10e 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -11,5 +11,7 @@ RUN set -ex; \ rm -rf /var/lib/apt/lists/*; \ elasticsearch-plugin install --batch ingest-attachment +USER 1000 + HEALTHCHECK CMD nc -z localhost 9200 || exit 1 LABEL com.centurylinklabs.watchtower.monitor-only="true" diff --git a/Containers/onlyoffice/Dockerfile b/Containers/onlyoffice/Dockerfile index 53eac760..2f87e0c0 100644 --- a/Containers/onlyoffice/Dockerfile +++ b/Containers/onlyoffice/Dockerfile @@ -1,5 +1,7 @@ # From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile FROM onlyoffice/documentserver:7.3.3.50 +# USER root is probably used + HEALTHCHECK CMD nc -z localhost 80 || exit 1 LABEL com.centurylinklabs.watchtower.monitor-only="true" diff --git a/Containers/watchtower/Dockerfile b/Containers/watchtower/Dockerfile index 741b1c1e..ec8f30ad 100644 --- a/Containers/watchtower/Dockerfile +++ b/Containers/watchtower/Dockerfile @@ -8,5 +8,7 @@ COPY --from=watchtower /watchtower /watchtower COPY --chmod=775 start.sh /start.sh +USER root + ENTRYPOINT ["/start.sh"] LABEL com.centurylinklabs.watchtower.monitor-only="true"