From 398cf969ac04f60147337615e48ea7be8440d37b Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 10 Feb 2023 13:42:03 +0100 Subject: [PATCH] mastercontainer - increase max children and switch to pm dynamic Signed-off-by: Simon L --- Containers/mastercontainer/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Containers/mastercontainer/Dockerfile b/Containers/mastercontainer/Dockerfile index ed4be10b..a5cbd8c8 100644 --- a/Containers/mastercontainer/Dockerfile +++ b/Containers/mastercontainer/Dockerfile @@ -58,6 +58,9 @@ RUN set -ex; \ )"; \ apk add --virtual .nextcloud-aio-rundeps $runDeps; \ apk del .build-deps; \ + grep -q '^pm = dynamic' /usr/local/etc/php-fpm.d/www.conf; \ + sed -i 's/^pm = dynamic/pm = ondemand/' /usr/local/etc/php-fpm.d/www.conf; \ + sed -i 's/^pm.max_children =.*/pm.max_children = 80/' /usr/local/etc/php-fpm.d/www.conf; \ sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf COPY --from=caddy /usr/bin/caddy /usr/bin/