Remove fpm-status page and add docker healthcheck

This commit is contained in:
Dale Davies
2022-02-12 00:07:49 +00:00
parent 6b252d64b5
commit c36934e4f6
3 changed files with 3 additions and 2 deletions

View File

@@ -62,3 +62,5 @@ RUN mkdir -p /var/www/cache/application \
EXPOSE 8080
ENTRYPOINT ["entrypoint.sh"]
HEALTHCHECK --interval=5m --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1

View File

@@ -6,7 +6,6 @@ user = jumpapp
listen = /run/php-fpm.sock
listen.owner = jumpapp
pm.status_path = /fpm-status
pm = ondemand
pm.max_children = 100
pm.process_idle_timeout = 10s

View File

@@ -74,7 +74,7 @@ http {
}
# Allow fpm ping and status from localhost
location ~ ^/(fpm-status|fpm-ping)$ {
location ~ ^/(fpm-ping)$ {
access_log off;
allow 127.0.0.1;
deny all;