Add || exit 1 to HEALTHCHECK to map cURL exit codes and Docker possible values

This commit is contained in:
JoshuaLicense
2024-01-15 22:19:55 +00:00
committed by Tim de Pater
parent 1545dc1818
commit 1784a0a064

View File

@@ -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