diff --git a/Dockerfile b/Dockerfile index 8c7eff1..ed2d014 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,6 +90,7 @@ ENV nginx_root_directory=/var/www/html/public \ nginx_fastcgi_read_timeout=100 \ client_max_body_size=2M \ clear_env=no \ + pm_mode=dynamic \ pm_start_servers=20 \ pm_min_spare_servers=10 \ pm_max_spare_servers=20 \ diff --git a/rootfs/etc/php83/php-fpm.d/www.conf b/rootfs/etc/php83/php-fpm.d/www.conf index aa379eb..e3aec0c 100644 --- a/rootfs/etc/php83/php-fpm.d/www.conf +++ b/rootfs/etc/php83/php-fpm.d/www.conf @@ -34,7 +34,7 @@ listen.group = nobody pm.status_path = /fpm-status ; Ondemand process manager -pm = dynamic +pm = $pm_mode ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.