From c72cd2d7d8b6262fcc9b605332d08d93a9613443 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 16 Apr 2023 14:16:31 +0200 Subject: [PATCH] add healtcheck --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 515f7e4..e98865d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,5 +47,9 @@ VOLUME /var/cache/munin EXPOSE 80 +# health check +HEALTHCHECK --interval=5m --timeout=3s \ + CMD curl -f http://localhost/munin/ || exit 1 + # launcher CMD ["/usr/local/bin/run"]