Lightweight & optimized PHP-FPM 8.1,8.2,8.3 with essential extensions on top of latest Alpine Linux.
50K+
x86_64/arm/arm64) for PHP-FPMā (PHP 8.0ā , 8.1ā , 8.2ā ) with essential extensions on top of latest Alpine Linux. š
View the repository on GitHub: https://github.com/joseluisq/alpine-php-fpmā
| v8.0 | v8.1 | v8.2 |
|---|---|---|
curl, ftp, hash (mhash), libedit, libsodium, mbstring, mysqlnd, openssl, password-argon2, pdo-sqlite, pear, sqlite3, zlib
| Extension | v8.0 | v8.1 | v8.2 |
|---|---|---|---|
| amqp | ā | ā | ā |
| apcu | ā | ā | ā |
| bcmath | ā | ā | ā |
| bz2 | ā | ā | ā |
| exif | ā | ā | ā |
| gd | ā | ā | ā |
| gettext | ā | ā | ā |
| gmp | ā | ā | ā |
| imagick | ā | ā | ā |
| imap | ā | ā | ā |
| intl | ā | ā | ā |
| mcrypt | ā | ? | ? |
| memcache | ā | ā | ā |
| mongodb | ā | ā | ā |
| mysqli | ā | ā | ā |
| oauth | ā | ā | ā |
| opcache | ā | ā | ā |
| pcntl | ā | ā | ā |
| pdo_dblib | ā | ā | ā |
| pdo_mysql | ā | ā | ā |
| pdo_pgsql | ā | ā | ā |
| pdo_sqlsrv | ā (64-bit only) | ā (64-bit only) | ā (64-bit only) |
| pgsql | ā | ā | ā |
| phalcon | ? | ā | ā |
| psr | ā | ā | ā |
| redis | ā | ā | ā |
| rdkafka | ā | ā | ā |
| soap | ā | ā | ā |
| sockets | ā | ā | ā |
| sqlsrv | ā (64-bit only) | ā (64-bit only) | ā (64-bit only) |
| ssh2 | ā | ā | ā |
| swoole | ā | ā | ā |
| sysvmsg | ā | ā | ā |
| sysvsem | ā | ā | ā |
| sysvshm | ā | ā | ā |
| tidy | ā | ā | ā |
| vips | ā | ā | ā |
| xsl | ā | ā | ā |
| yaml | ā | ā | ā |
| zip | ā | ā | ā |
| Ā | Ā | Ā | Ā |
| Others | |||
| composer | v2.5 | v2.5 | v2.5 |
Footnotes
(?) It means that this extension is obsolete/unmaintained/discourage or simply is not supported yet.
š³ 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
# Or
docker pull joseluisq/php-fpm:8.1
FROM joseluisq/php-fpm:7.4
# Or
FROM joseluisq/php-fpm:8.0
# Or
FROM joseluisq/php-fpm:8.1
To give it a quick try just execute any of those commands and then navigate to localhost:8088ā
docker run --rm -p 8088:80 joseluisq/php-fpm:8.1 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."
# Or
docker run --rm -p 8088:80 joseluisq/php-fpm:8.0 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."
# Or
docker run --rm -p 8088:80 joseluisq/php-fpm:7.4 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."
View Docker Compose Examplesā
/var/www/html.ini files to load: /usr/local/etc/php/conf.d.ini file generated (only if ENV_SUBSTITUTION_ENABLE=true): /usr/local/etc/php/conf.d/default-php.iniPHP-FPM and PHP configurations can be overwritten using environment variables.
To do it so, just indicates the substitution of values using ENV_SUBSTITUTION_ENABLE=true (since it is disabled by default).
Below the environment variables with their default values:
Settings replaced into /usr/local/etc/php-fpm.conf file.
PHP_FPM_ERROR_LOG=/proc/self/fd/2PHP_FPM_LOG_LEVEL=errorSettings replaced into /usr/local/etc/php-fpm.d/www.conf file.
PHP_FPM_LISTEN=9000PHP_FPM_USER=www-dataPHP_FPM_GROUP=www-dataPHP_FPM_LISTEN_OWNER=www-dataPHP_FPM_LISTEN_GROUP=www-dataSettings replaced into /usr/local/etc/php/conf.d/default-php.ini file (php.ini).
PHP_MEMORY_LIMIT=512MPHP_EXPOSE_PHP=OnPHP_SESSION_GC_MAXLIFETIME=1440docker-composeā examples for Nginxā and Apacheā servers can be found under the ./examplesā directory.
docker-compose -f examples/nginx/docker-compose.yml up
docker-compose -f examples/apache/docker-compose.yml up
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ā
Content type
Image
Digest
sha256:5547f9f54ā¦
Size
99.3 MB
Last updated
7 months ago
docker pull joseluisq/php-fpm:8