From e989738aa6a0365b7a53c5a6b7739b4bd7113bf1 Mon Sep 17 00:00:00 2001 From: holzi1005 <andreas.holzmann@h2-invent.com> Date: Fri, 28 Feb 2025 15:39:17 +0100 Subject: [PATCH] add pm_mode as env --- Dockerfile | 1 + rootfs/etc/php83/php-fpm.d/www.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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'.