From f5616cd618565626ede239939db2cb4ccb4173c3 Mon Sep 17 00:00:00 2001 From: Zoey Date: Mon, 30 Jan 2023 14:54:09 +0100 Subject: [PATCH] Disallow Watchtower to update AIO Container (exept Mastercontainer) See: https://containrrr.dev/watchtower/container-selection/#monitor_only Signed-off-by: Zoey --- Containers/apache/Dockerfile | 1 + Containers/borgbackup/Dockerfile | 3 ++- Containers/clamav/Dockerfile | 1 + Containers/collabora/Dockerfile | 1 + Containers/domaincheck/Dockerfile | 3 ++- Containers/fulltextsearch/Dockerfile | 1 + Containers/imaginary/Dockerfile | 3 ++- Containers/nextcloud/Dockerfile | 1 + Containers/onlyoffice/Dockerfile | 3 ++- Containers/postgresql/Dockerfile | 1 + Containers/redis/Dockerfile | 3 ++- Containers/talk/Dockerfile | 3 ++- Containers/watchtower/Dockerfile | 1 + 13 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 5c42cb77..d813e578 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -82,3 +82,4 @@ ENTRYPOINT ["start.sh"] CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] HEALTHCHECK CMD healthcheck.sh +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/borgbackup/Dockerfile b/Containers/borgbackup/Dockerfile index 65d39bdc..aaae2c47 100644 --- a/Containers/borgbackup/Dockerfile +++ b/Containers/borgbackup/Dockerfile @@ -18,4 +18,5 @@ RUN chmod +x /usr/bin/start.sh; \ chmod +x /backupscript.sh USER root -ENTRYPOINT ["start.sh"] \ No newline at end of file +ENTRYPOINT ["start.sh"] +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index e3a42e81..5fe9c503 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -4,3 +4,4 @@ FROM clamav/clamav:0.105.1-7 RUN apk add --no-cache tzdata COPY clamav.conf /tmp/ RUN cat /tmp/clamav.conf >> /etc/clamav/clamd.conf +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/collabora/Dockerfile b/Containers/collabora/Dockerfile index 439b3859..c16f31f7 100644 --- a/Containers/collabora/Dockerfile +++ b/Containers/collabora/Dockerfile @@ -16,3 +16,4 @@ RUN set -ex; \ USER 104 HEALTHCHECK CMD nc -z localhost 9980 || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/domaincheck/Dockerfile b/Containers/domaincheck/Dockerfile index 3c4dae25..484cd613 100644 --- a/Containers/domaincheck/Dockerfile +++ b/Containers/domaincheck/Dockerfile @@ -15,4 +15,5 @@ USER www-data RUN mkdir -p /var/www/domaincheck/ ENTRYPOINT ["/start.sh"] -HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1 \ No newline at end of file +HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index f33b4f0c..4e92335d 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -12,3 +12,4 @@ RUN set -ex; \ rm -rf /var/lib/apt/lists/* HEALTHCHECK CMD nc -z localhost 9200 || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/imaginary/Dockerfile b/Containers/imaginary/Dockerfile index 49e8d14b..a4309117 100644 --- a/Containers/imaginary/Dockerfile +++ b/Containers/imaginary/Dockerfile @@ -13,4 +13,5 @@ USER nobody ENTRYPOINT ["/usr/local/bin/imaginary", "-return-size"] -HEALTHCHECK CMD nc -z localhost 9000 || exit 1 \ No newline at end of file +HEALTHCHECK CMD nc -z localhost 9000 || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 7a64f04c..76ae830a 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -267,3 +267,4 @@ USER root ENTRYPOINT ["/start.sh"] HEALTHCHECK CMD sudo -E -u www-data bash /healthcheck.sh +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/onlyoffice/Dockerfile b/Containers/onlyoffice/Dockerfile index af22a625..1dcced12 100644 --- a/Containers/onlyoffice/Dockerfile +++ b/Containers/onlyoffice/Dockerfile @@ -1,4 +1,5 @@ # From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile FROM onlyoffice/documentserver:7.2.2.56 -HEALTHCHECK CMD nc -z localhost 80 || exit 1 \ No newline at end of file +HEALTHCHECK CMD nc -z localhost 80 || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/postgresql/Dockerfile b/Containers/postgresql/Dockerfile index df01436c..329a0c31 100644 --- a/Containers/postgresql/Dockerfile +++ b/Containers/postgresql/Dockerfile @@ -36,3 +36,4 @@ USER postgres ENTRYPOINT ["start.sh"] HEALTHCHECK CMD healthcheck.sh +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/redis/Dockerfile b/Containers/redis/Dockerfile index e18f59de..99b9ebe4 100644 --- a/Containers/redis/Dockerfile +++ b/Containers/redis/Dockerfile @@ -12,4 +12,5 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd USER redis ENTRYPOINT ["start.sh"] -HEALTHCHECK CMD redis-cli -a $REDIS_HOST_PASSWORD PING || exit 1 \ No newline at end of file +HEALTHCHECK CMD redis-cli -a $REDIS_HOST_PASSWORD PING || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/talk/Dockerfile b/Containers/talk/Dockerfile index 0e596cf0..6730710d 100644 --- a/Containers/talk/Dockerfile +++ b/Containers/talk/Dockerfile @@ -71,4 +71,5 @@ USER talk ENTRYPOINT ["start.sh"] CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] -HEALTHCHECK CMD (nc -z localhost 8081 && nc -z localhost 8188 && nc -z localhost 4222 && nc -z localhost $TALK_PORT) || exit 1 \ No newline at end of file +HEALTHCHECK CMD (nc -z localhost 8081 && nc -z localhost 8188 && nc -z localhost 4222 && nc -z localhost $TALK_PORT) || exit 1 +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file diff --git a/Containers/watchtower/Dockerfile b/Containers/watchtower/Dockerfile index ab956637..d08baf51 100644 --- a/Containers/watchtower/Dockerfile +++ b/Containers/watchtower/Dockerfile @@ -11,3 +11,4 @@ RUN chmod +x /start.sh USER root ENTRYPOINT ["/start.sh"] +LABEL com.centurylinklabs.watchtower.monitor-only="true" \ No newline at end of file