From e03ebf3e5334d404b99336c02779fbdf15544b2e Mon Sep 17 00:00:00 2001 From: ellite Date: Sat, 18 Nov 2023 14:42:19 +0100 Subject: [PATCH] Increase number of child processes for FPM --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2e46935d4..a2c20c700 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,6 +53,10 @@ RUN chown -R www-data:www-data /var/www/html RUN chmod +x /var/www/html/startup.sh +# SETUP PHP-FPM CONFIG SETTINGS (max_children / max_requests) +RUN echo 'pm.max_children = 15' >> /usr/local/etc/php-fpm.d/zz-docker.conf && \ + echo 'pm.max_requests = 500' >> /usr/local/etc/php-fpm.d/zz-docker.conf + # Expose port 80 for Nginx EXPOSE 80