From 81e21c7de53cc4242ee953bf431921ff08e41e39 Mon Sep 17 00:00:00 2001 From: Kristian Haugene Date: Sun, 8 Nov 2020 18:15:03 +0100 Subject: [PATCH] Add autoheal label to enable use of companion container restarting unhealthy container #454 --- Dockerfile | 3 +++ Dockerfile.armhf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index b7c9af951..44bf3cffd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,6 +62,9 @@ ENV REVISION=${REVISION:-""} LABEL org.opencontainers.image.source=https://github.com/haugene/docker-transmission-openvpn LABEL org.opencontainers.image.revision=$REVISION +# Compatability with https://hub.docker.com/r/willfarrell/autoheal/ +LABEL autoheal=true + # Expose port and run EXPOSE 9091 CMD ["dumb-init", "/etc/openvpn/start.sh"] diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 476ff0ffa..5349576b2 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -61,6 +61,9 @@ ENV OPENVPN_USERNAME=**None** \ HEALTHCHECK --interval=1m CMD /etc/scripts/healthcheck.sh +# Compatability with https://hub.docker.com/r/willfarrell/autoheal/ +LABEL autoheal=true + # Expose port and run EXPOSE 9091 CMD ["dumb-init", "/etc/openvpn/start.sh"]