PHP-FPM Docker Image by AlleoTech Ltd.
docker run -d --name php-fpm alleotech/php-fpm
It is possible to adjust few configuration parameters during the start of the image via ENV (-e var=value). Keep in mind that settings are applied with sed regexp and thus should be escaped accordingly (see PHP_ERROR_REPORTING as an example).
- PHP_MEMORY_LIMIT:
php.inimemory_limit param (default:128M) - PHP_ERROR_REPORTING:
php.inierror_reporing (default:E_ALL \\& ~E_DEPRECATED \\& ~E_STRICT) - PHP_POST_MAX_SIZE:
php.iniphp_post_max_size (default:8M) - PHP_UPLOAD_MAX_FILESIZE:
php.iniupload_max_filesize (default:8M) - PHP_MAX_EXECUTION_TIME:
php.inimax_execution_time (default:30) - PHP_MAX_INPUT_VARS:
php.inimax_input_vars (default:1000) - PHP_SESSION_SAVE_PATH:
php.inisession.save_path (default:/var/lib/php/session) - FPM_MAX_CHILDREN:
php-fpm.d/www.confpm.max_children (default:5)
- user = nobody
- pm = static
- port = 9000
- listen and allowed clients = 0.0.0.0