mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-22 23:08:15 +08:00
Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM ping path
This commit is contained in:
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
Block a user