Skip to content

Commit 1784a0a

Browse files
JoshuaLicenseTrafeX
authored andcommitted
Add || exit 1 to HEALTHCHECK to map cURL exit codes and Docker possible values
1 parent 1545dc1 commit 1784a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ EXPOSE 8080
6161
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
6262

6363
# Configure a healthcheck to validate that everything is up&running
64-
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping
64+
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1

0 commit comments

Comments
 (0)