From 1784a0a064dc0db5d235cb7bb5eb630c320d737d Mon Sep 17 00:00:00 2001 From: JoshuaLicense Date: Mon, 15 Jan 2024 22:19:55 +0000 Subject: [PATCH] Add `|| exit 1` to `HEALTHCHECK` to map cURL exit codes and Docker possible values --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 764537a..38979f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,4 +61,4 @@ EXPOSE 8080 CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] # Configure a healthcheck to validate that everything is up&running -HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping +HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1