Add autoheal label to enable use of companion container restarting unhealthy container #454

This commit is contained in:
Kristian Haugene 2020-11-08 18:15:03 +01:00
parent 1970f54b88
commit 81e21c7de5
2 changed files with 6 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]