File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ services:
29
29
volumes :
30
30
- /etc/localtime:/etc/localtime:ro
31
31
- ./docker/app/app.ini:/usr/local/etc/php/conf.d/app.ini:ro
32
+ - ./docker/app/php-fpm.conf:/usr/local/etc/php-fpm.d/zz-php-fpm.conf:ro
32
33
- ./:/var/www/app:rw
33
34
34
35
web :
Original file line number Diff line number Diff line change
1
+ [www]
2
+ ; The number of child processes to be created when pm is set to 'static' and the
3
+ ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
4
+ ; This value sets the limit on the number of simultaneous requests that will be
5
+ ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
6
+ ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
7
+ ; CGI. The below defaults are based on a server without much resources. Don't
8
+ ; forget to tweak pm.* to fit your needs.
9
+ ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
10
+ ; Note: This value is mandatory.
11
+ pm.max_children = 5
12
+
13
+ ; The number of child processes created on startup.
14
+ ; Note: Used only when pm is set to 'dynamic'
15
+ ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
16
+ pm.start_servers = 2
17
+
18
+ ; The desired minimum number of idle server processes.
19
+ ; Note: Used only when pm is set to 'dynamic'
20
+ ; Note: Mandatory when pm is set to 'dynamic'
21
+ pm.min_spare_servers = 1
22
+
23
+ ; The desired maximum number of idle server processes.
24
+ ; Note: Used only when pm is set to 'dynamic'
25
+ ; Note: Mandatory when pm is set to 'dynamic'
26
+ pm.max_spare_servers = 3
27
+
You can’t perform that action at this time.
0 commit comments