PHP-FPM (PHP v7.4 and v8.0) with essential extensions on top of Alpine Linux v3.14.
- curl
- ftp
- hash (mhash)
- libedit
- libsodium
- mbstring
- mysqlnd
- openssl
- password-argon2
- pdo-sqlite
- pear
- sqlite3
- zlib
Extension | v7.4 | v8.0 |
---|---|---|
amqp | ✓ | ✓ |
bcmath | ✓ | ✓ |
exif | ✓ | ✓ |
gd | ✓ | ✓ |
gettext | ✓ | ✓ |
gmp | ✓ | ✓ |
imagick | ✓ | ✓ |
intl | ✓ | ✓ |
mcrypt | ✓ | ✓ |
memcache | ✓ | ✓ |
mysqli | ✓ | ✓ |
oauth | ✓ | ✓ |
pcntl | ✓ | ✓ |
pdo_dblib | ✓ | ✓ |
pdo_mysql | ✓ | ✓ |
pdo_pgsql | ✓ | ✓ |
pgsql | ✓ | ✓ |
psr | ✓ | ✓ |
soap | ✓ | ✓ |
sockets | ✓ | ✓ |
ssh2 | ✓ | ✓ |
tidy | ✓ | ✓ |
vips | ✓ | ✓ |
xmlrpc | ✓ | |
xsl | ✓ | ✓ |
yaml | ✓ | ✓ |
swoole | ✓ | ✓ |
sysvmsg | ✓ | ✓ |
sysvsem | ✓ | ✓ |
sysvshm | ✓ | ✓ |
zip | ✓ | ✓ |
Others | ||
composer | v2.0 | v2.0 |
🐳 Available on Docker Hub → hub.docker.com/r/joseluisq/php-fpm
docker pull joseluisq/php-fpm:7.4
# Or
docker pull joseluisq/php-fpm:8.0
Dockerfile
FROM joseluisq/php-fpm:7.4
# Or
FROM joseluisq/php-fpm:8.0
PHP-FPM and PHP configurations can be overwritten using environment variables.
For do it, just indicates the substitution of values using ENV_SUBSTITUTION_ENABLE=true
.
Below the environment variables with their default values:
Settings replaced into www.conf
file.
PHP_FPM_LISTEN=9000
PHP_FPM_USER=www-data
PHP_FPM_GROUP=www-data
PHP_FPM_LISTEN_OWNER=www-data
PHP_FPM_LISTEN_GROUP=www-data
Settings replaced into php.ini
file.
PHP_MEMORY_LIMIT=512M
PHP_SESSION_GC_MAXLIFETIME=1440
A docker-compose
example using a Nginx server can be found under ./sample directory.
Feel free to send a pull request or file some issue.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.
Feel free to send some Pull request or issue.
This work is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
© 2020-present Jose Quintana