From 4e753651adaa95cbc0f7a29b3901f23f49582823 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Wed, 18 Dec 2024 14:54:37 +0100 Subject: [PATCH] Add a HEALTHCECK The docker image would benefit from a health check --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 332e8c9..2635432 100644 --- a/Dockerfile +++ b/Dockerfile @@ -178,3 +178,6 @@ VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/opt/graphite/webapp/gra STOPSIGNAL SIGHUP ENTRYPOINT ["/entrypoint"] + +HEALTHCHECK --interval=60s --start-interval=20s --timeout=3s \ + CMD curl -f http://localhost/ || exit 1