This commit is contained in:
Alexandre
2023-03-12 22:51:17 +01:00
committed by GitHub
parent ac68b9d284
commit f9ac8a7830
2 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
- Implement healthcheck
## 2.00.19.1 (19-02-2023)
- Update to latest version from haveagitgat/tdarr

View File

@@ -96,6 +96,15 @@ LABEL \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
####################
# 6 HealthcheckNOT #
####################
#################
# 6 Healthcheck #
#################
ENV HEALTH_PORT="8265" \
HEALTH_URL=""
HEALTHCHECK \
--interval=5s \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD curl --fail "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1