From 18f8a6aa0dbd4174030191a32bee851b1b930a47 Mon Sep 17 00:00:00 2001 From: Rich Turner <7072278+richturner@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:13:05 +0000 Subject: [PATCH] Updated to HA Proxy 2.9 and healthcheck improved --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2e9d1e..1be458b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # HAProxy image with certbot for certificate generation and renewal # # ----------------------------------------------------------------------------------------------- -FROM haproxy:2.8-alpine +FROM haproxy:2.9-alpine MAINTAINER support@openremote.io USER root @@ -59,7 +59,7 @@ ADD cli.ini /root/.config/letsencrypt/ ADD entrypoint.sh / RUN chmod +x /entrypoint.sh -HEALTHCHECK --interval=60s --timeout=3s --start-period=5s --retries=2 CMD curl --fail --silent http://127.0.0.1/docker-health || exit 1 +HEALTHCHECK --interval=5s --timeout=3s --start-period=5s --retries=10 CMD curl --fail --silent http://127.0.0.1/docker-health || exit 1 RUN chown -R haproxy:haproxy /etc/haproxy