Skip to content

Commit

Permalink
Add || exit 1 to HEALTHCHECK to map cURL exit codes and Docker po…
Browse files Browse the repository at this point in the history
…ssible values
  • Loading branch information
JoshuaLicense authored and TrafeX committed Feb 10, 2024
1 parent 1545dc1 commit 1784a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1784a0a

Please sign in to comment.