|
| 1 | +; Unix user/group of processes |
| 2 | +; Note: The user is mandatory. If the group is not set, the default user's group |
| 3 | +; will be used. |
| 4 | +user = www-data |
| 5 | +group = www-data |
| 6 | + |
| 7 | +; The address on which to accept FastCGI requests. |
| 8 | +; Valid syntaxes are: |
| 9 | +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on |
| 10 | +; a specific port; |
| 11 | +; 'port' - to listen on a TCP socket to all addresses on a |
| 12 | +; specific port; |
| 13 | +; '/path/to/unix/socket' - to listen on a unix socket. |
| 14 | +; Note: This value is mandatory. |
| 15 | +listen = 0.0.0.0:9000 |
| 16 | + |
| 17 | +; Choose how the process manager will control the number of child processes. |
| 18 | +; Possible Values: |
| 19 | +; static - a fixed number (pm.max_children) of child processes; |
| 20 | +; dynamic - the number of child processes are set dynamically based on the |
| 21 | +; following directives. With this process management, there will be |
| 22 | +; always at least 1 children. |
| 23 | +; pm.max_children - the maximum number of children that can |
| 24 | +; be alive at the same time. |
| 25 | +; pm.start_servers - the number of children created on startup. |
| 26 | +; pm.min_spare_servers - the minimum number of children in 'idle' |
| 27 | +; state (waiting to process). If the number |
| 28 | +; of 'idle' processes is less than this |
| 29 | +; number then some children will be created. |
| 30 | +; pm.max_spare_servers - the maximum number of children in 'idle' |
| 31 | +; state (waiting to process). If the number |
| 32 | +; of 'idle' processes is greater than this |
| 33 | +; number then some children will be killed. |
| 34 | +; ondemand - no children are created at startup. Children will be forked when |
| 35 | +; new requests will connect. The following parameter are used: |
| 36 | +; pm.max_children - the maximum number of children that |
| 37 | +; can be alive at the same time. |
| 38 | +; pm.process_idle_timeout - The number of seconds after which |
| 39 | +; an idle process will be killed. |
| 40 | +; Note: This value is mandatory. |
| 41 | +pm = dynamic |
| 42 | + |
| 43 | +; The number of child processes to be created when pm is set to 'static' and the |
| 44 | +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. |
| 45 | +; This value sets the limit on the number of simultaneous requests that will be |
| 46 | +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. |
| 47 | +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP |
| 48 | +; CGI. The below defaults are based on a server without much resources. Don't |
| 49 | +; forget to tweak pm.* to fit your needs. |
| 50 | +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' |
| 51 | +; Note: This value is mandatory. |
| 52 | +pm.max_children = 30 |
| 53 | + |
| 54 | +; The number of child processes created on startup. |
| 55 | +; Note: Used only when pm is set to 'dynamic' |
| 56 | +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 |
| 57 | +pm.start_servers = 10 |
| 58 | + |
| 59 | +; The desired minimum number of idle server processes. |
| 60 | +; Note: Used only when pm is set to 'dynamic' |
| 61 | +; Note: Mandatory when pm is set to 'dynamic' |
| 62 | +pm.min_spare_servers = 5 |
| 63 | + |
| 64 | +; The desired maximum number of idle server processes. |
| 65 | +; Note: Used only when pm is set to 'dynamic' |
| 66 | +; Note: Mandatory when pm is set to 'dynamic' |
| 67 | +pm.max_spare_servers = 15 |
| 68 | + |
| 69 | +;--------------------- |
| 70 | + |
| 71 | +; Make specific Docker environment variables available to PHP |
| 72 | +env[DB_1_ENV_MYSQL_DATABASE] = $DB_1_ENV_MYSQL_DATABASE |
| 73 | +env[DB_1_ENV_MYSQL_USER] = $DB_1_ENV_MYSQL_USER |
| 74 | +env[DB_1_ENV_MYSQL_PASSWORD] = $DB_1_ENV_MYSQL_PASSWORD |
| 75 | + |
| 76 | +catch_workers_output = yes |
0 commit comments