Skip to content

Commit ff01cf2

Browse files
authored
Merge pull request #28 from rm-yakovenko/20-Allow
20 Allow edit php-fpm config file
2 parents 1e40f8e + eabb208 commit ff01cf2

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
volumes:
3030
- /etc/localtime:/etc/localtime:ro
3131
- ./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
3233
- ./:/var/www/app:rw
3334

3435
web:

docker/app/php-fpm.conf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+

0 commit comments

Comments
 (0)