Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ We like to customize our images on a per app basis using environment variables.
`PHP_FPM_PM_MAX_SPARE_SERVERS`<br />*Default: "3"*|The desired maximum number of idle server processes. Used only when pm is set to dynamic. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_FPM_PM_MIN_SPARE_SERVERS`<br />*Default: "1"*|The desired minimum number of idle server processes. Used only when pm is set to dynamic. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_FPM_PM_START_SERVERS`<br />*Default: "2"*|The number of child processes created on startup. Used only when pm is set to dynamic. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_FPM_PM_MAX_REQUESTS`<br />*Default: "0"*|The number of requests each child process should execute before respawning. This can be useful to work around memory leaks in 3rd party libraries. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_FPM_POOL_NAME`<br />*Default: "www"*|Set the name of your PHP-FPM pool (helpful when running multiple sites on a single server).|fpm*
`PHP_FPM_PROCESS_CONTROL_TIMEOUT`<br />*Default: "10s"*|Set the timeout for the process control commands. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_MAX_EXECUTION_TIME`<br />*Default: "99"*|Set the maximum time in seconds a script is allowed to run before it is terminated by the parser. (<a target="_blank" href="https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time">Official docs</a>)|all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ pm.min_spare_servers = ${PHP_FPM_PM_MIN_SPARE_SERVERS}
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = ${PHP_FPM_PM_MAX_SPARE_SERVERS}

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
pm.max_requests = ${PHP_FPM_PM_MAX_REQUESTS}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Healthcheck settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
1 change: 1 addition & 0 deletions src/variations/fpm-apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ENV APACHE_DOCUMENT_ROOT=/var/www/html/public \
PHP_FPM_PM_MAX_SPARE_SERVERS="3" \
PHP_FPM_PM_MIN_SPARE_SERVERS="1" \
PHP_FPM_PM_START_SERVERS="2" \
PHP_FPM_PM_MAX_REQUESTS="0" \
PHP_FPM_POOL_NAME="www" \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
Expand Down
1 change: 1 addition & 0 deletions src/variations/fpm-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_FPM_PM_MAX_SPARE_SERVERS="3" \
PHP_FPM_PM_MIN_SPARE_SERVERS="1" \
PHP_FPM_PM_START_SERVERS="2" \
PHP_FPM_PM_MAX_REQUESTS="0" \
PHP_FPM_POOL_NAME="www" \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
Expand Down
1 change: 1 addition & 0 deletions src/variations/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_FPM_PM_MAX_SPARE_SERVERS="3" \
PHP_FPM_PM_MIN_SPARE_SERVERS="1" \
PHP_FPM_PM_START_SERVERS="2" \
PHP_FPM_PM_MAX_REQUESTS="0" \
PHP_FPM_POOL_NAME="www" \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
Expand Down