mirror of
https://github.com/daledavies/jump.git
synced 2026-01-09 17:02:08 +01:00
Remove fpm-status page and add docker healthcheck
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user