Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM ping path
parent
b8890aadeb
commit
d608b45950
|
@ -24,3 +24,5 @@ COPY src/ /var/www/html/
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
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
|
||||||
|
|
|
@ -36,3 +36,6 @@ clear_env = no
|
||||||
|
|
||||||
; Catch output from PHP
|
; Catch output from PHP
|
||||||
catch_workers_output = yes
|
catch_workers_output = yes
|
||||||
|
|
||||||
|
; Enable ping page to use in healthcheck
|
||||||
|
ping.path = /fpm-ping
|
||||||
|
|
Loading…
Reference in New Issue