Skip to content

Commit 4ce703e

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

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

25/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -108,6 +109,7 @@ RUN { \
108109
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
109110
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
110111
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
112+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
111113
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
112114
\
113115
mkdir /var/www/data; \

25/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -108,6 +109,7 @@ RUN { \
108109
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
109110
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
110111
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
112+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
111113
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
112114
\
113115
mkdir /var/www/data; \

26/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -109,6 +110,7 @@ RUN { \
109110
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
110111
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
111112
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
113+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
112114
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
113115
\
114116
mkdir /var/www/data; \

26/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -109,6 +110,7 @@ RUN { \
109110
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
110111
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
111112
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
113+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
112114
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
113115
\
114116
mkdir /var/www/data; \

27/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -109,6 +110,7 @@ RUN { \
109110
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
110111
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
111112
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
113+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
112114
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
113115
\
114116
mkdir /var/www/data; \

27/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN set -ex; \
2121
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2222
ENV PHP_MEMORY_LIMIT 512M
2323
ENV PHP_UPLOAD_LIMIT 512M
24+
ENV PHP_PM_MAX_CHILDREN 16
2425
RUN set -ex; \
2526
\
2627
savedAptMark="$(apt-mark showmanual)"; \
@@ -109,6 +110,7 @@ RUN { \
109110
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
110111
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
111112
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
113+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
112114
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
113115
\
114116
mkdir /var/www/data; \

Dockerfile-debian.template

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)"; \
@@ -108,6 +109,7 @@ RUN { \
108109
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
109110
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
110111
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
112+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
111113
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
112114
\
113115
mkdir /var/www/data; \

0 commit comments

Comments
 (0)