mirror of
https://github.com/netfun2000/docker-php-nginx.git
synced 2026-04-22 00:29:10 +08:00
Add || exit 1 to HEALTHCHECK to map cURL exit codes and Docker possible values
This commit is contained in:
committed by
Tim de Pater
parent
1545dc1818
commit
1784a0a064
@@ -61,4 +61,4 @@ EXPOSE 8080
|
|||||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||||
|
|
||||||
# Configure a healthcheck to validate that everything is up&running
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user