Skip to content

Commit bcd3994

Browse files
committed
Configure pm.max_children from env var
Signed-off-by: Thomas Clavier <[email protected]>
1 parent 6e7695e commit bcd3994

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

22/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

22/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

23/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

23/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

24/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

24/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

Dockerfile-debian.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN set -ex; \
1919
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2020
ENV PHP_MEMORY_LIMIT 512M
2121
ENV PHP_UPLOAD_LIMIT 512M
22+
ENV PHP_PM_MAX_CHILDREN 16
2223
RUN set -ex; \
2324
\
2425
savedAptMark="$(apt-mark showmanual)"; \
@@ -106,6 +107,7 @@ RUN { \
106107
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
107108
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
108109
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
110+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
109111
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
110112
\
111113
mkdir /var/www/data; \

0 commit comments

Comments
 (0)