This commit is contained in:
Alexandre
2025-07-15 21:32:32 +02:00
parent add1fa3b20
commit 211bcc6556
7 changed files with 55 additions and 12 deletions

View File

@@ -74,11 +74,14 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && \
/ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
ENTRYPOINT [ "/usr/bin/env" ]
CMD [ "/ha_entrypoint.sh" ]
# ---------- Healthcheck ----------
ENV HEALTH_PORT="8080" \
HEALTH_URL="/ping"
HEALTHCHECK --interval=10s --retries=5 --timeout=20s CMD \
curl -A "HealthCheck: Docker/1.0" -fs "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1
#ENV HEALTH_PORT="8080" \
# HEALTH_URL="/ping"
#HEALTHCHECK --interval=10s --retries=5 --timeout=20s CMD \
# curl -A "HealthCheck: Docker/1.0" -fs "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1
############
# 5 Labels #