Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM ping path

This commit is contained in:
Tim de Pater 2019-01-05 09:27:58 +01:00
parent b8890aadeb
commit d608b45950
2 changed files with 5 additions and 0 deletions

View File

@ -24,3 +24,5 @@ COPY src/ /var/www/html/
EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1/fpm-ping

View File

@ -36,3 +36,6 @@ clear_env = no
; Catch output from PHP
catch_workers_output = yes
; Enable ping page to use in healthcheck
ping.path = /fpm-ping