PHP-FPM image based on Debian stable release and PHP packages built by Ondřej Surý
2.9K
PHP-FPM daemon in this image runs as user and group php with UID 1005 and GID 1005.
By default, PHP-FPM in this image expects the application code to be mounted in /app directory within the container.
By default, this image exposes two ports:
9000/TCP - PHP-FPM pool listen port.9001/TCP - PHP-FPM pool pm.status_listen port.PHP_INI_: php.ini parameters.PHP_FPM_GLOBAL_: global PHP-FPM parameters.PHP_FPM_POOL_: PHP-FPM pool parameters.PHP_DISABLED_EXT: comma-separated list of extensions that should be disabled.Environment variables with PHP_INI_ name prefix are used to set new or update existing PHP-FPM parameters within the [PHP] section of /etc/php/fpm/php.ini configuration file.
For example, variable defined as
PHP_INI_MEMORY_LIMIT=2G
PHP_INI_MAX_INPUT_VARS=5000
will be translated as:
memory_limit=2G
max_input_vars=5000
Environment variables with PHP_FPM_GLOBAL_ name prefix are used to set new or update existing PHP-FPM parameters within the [global] section of the /etc/php/fpm/php-fpm.conf configuration file.
For example, variable defined as
PHP_FPM_GLOBAL_LOG_LIMIT=8192
will be translated as:
log_limit=8192
Environment variables with PHP_FPM_POOL_ name prefix are used to set new or update existing PHP-FPM parameters within default www PHP-FPM pool in /etc/php/fpm/pool.d/www.conf configuration file.
For example, variable defined as
PHP_FPM_POOL_LISTEN=/sock/php.sock
will be translated as:
listen=/sock/php.sock
Pre-installed PHP extensions can be disabled with PHP_DISABLED_EXT environment variable. This variable can contain a comma-separated list of extensions. E.g.:
PHP_DISABLED_EXT=opcache,excimer
This image comes with the following PHP extensions enabled by default:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
excimer
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
intl
json
libxml
mbstring
memcache
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Content type
Image
Digest
sha256:3c02b9d57…
Size
105.3 MB
Last updated
29 days ago
docker pull infobipcth/php-fpm