; Docs: https://www.php.net/manual/en/install.fpm.configuration.php
[global]
daemonize = no
error_log = /proc/self/fd/2
; https://github.com/docker-library/php/pull/725#issuecomment-443540114
log_limit = 8192
log_buffering = no

[default]
access.log = /proc/self/fd/2
listen = 9000
user = www-data
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 30
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.process_idle_timeout = 10s
pm.max_requests = 500
; Enable php to read env vars
clear_env = no
catch_workers_output = yes
decorate_workers_output = no
chdir = /
pm.status_path = /status
security.limit_extensions = .php
php_admin_value[log_errors] = On
php_admin_value[expose_php] = Off
php_admin_value[display_errors] = Off
php_admin_value[date.timezone] = UTC
