File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
5
5
PHP_OPCACHE_MEMORY_CONSUMPTION="192" \
6
6
PHP_OPCACHE_MAX_WASTED_PERCENTAGE="10" \
7
7
PHP_MEMORY_LIMIT="512M" \
8
- PHP_MAX_EXECUTION_TIME="60"
8
+ PHP_MAX_EXECUTION_TIME="60" \
9
+ PHP_FPM_MAX_CHILDREN="100" \
10
+ PHP_FPM_MAX_REQUESTS="1000" \
11
+ PHP_FPM_PM="ondemand" \
12
+ PHP_FPM_PROCESS_IDLE_TIMEOUT="10s"
9
13
10
14
RUN apk info \
11
15
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
Original file line number Diff line number Diff line change 1
1
[www]
2
2
; Ondemand process manager
3
- pm = ondemand
3
+ pm = ${PHP_FPM_PM}
4
4
5
5
; The number of child processes to be created when pm is set to 'static' and the
6
6
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
@@ -11,18 +11,18 @@ pm = ondemand
11
11
; forget to tweak pm.* to fit your needs.
12
12
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
13
13
; Note: This value is mandatory.
14
- pm.max_children = 100
14
+ pm.max_children = ${PHP_FPM_MAX_CHILDREN}
15
15
16
16
; The number of seconds after which an idle process will be killed.
17
17
; Note: Used only when pm is set to 'ondemand'
18
18
; Default Value: 10s
19
- pm.process_idle_timeout = 10s ;
19
+ pm.process_idle_timeout = ${PHP_FPM_PROCESS_IDLE_TIMEOUT} ;
20
20
21
21
; The number of requests each child process should execute before respawning.
22
22
; This can be useful to work around memory leaks in 3rd party libraries. For
23
23
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
24
24
; Default Value: 0
25
- pm.max_requests = 1000
25
+ pm.max_requests = ${PHP_FPM_MAX_REQUESTS}
26
26
27
27
; Make sure the FPM workers can reach the environment variables for configuration
28
28
clear_env = no
You can’t perform that action at this time.
0 commit comments