Docker PHP images
Docker images built on top of the official PHP images with the addition of some common and useful extensions, installed with mlocati/docker-php-extension-installer. You can find these images on the Docker Hub (and if you're reading this file, you're probably already there).
An automated build is set up, so they should be always up-to-date with the Dockerfiles in the GitHub repository.
Also see our other image variants:
- columbusinteractive/php-dev (with Xdebug)
- columbusinteractive/php-swoole (with Open Swoole)
- columbusinteractive/php-parallel (ZTS with parallel)
8.4
,8.4-alpine
,8.4-fpm
,8.4-fpm-alpine
8.3
,8.3-alpine
,8.3-fpm
,8.3-fpm-alpine
8.2
,8.2-alpine
,8.2-fpm
,8.2-fpm-alpine
8.1
,8.1-alpine
,8.1-fpm
,8.1-fpm-alpine
8.0
,8.0-alpine
,8.0-fpm
,8.0-fpm-alpine
The following modules and extensions have been enabled, in addition to those you can already find in the official PHP image:
amqp
apcu
bcmath
bz2
calendar
event
exif
ftp
gd
gettext
iconv
imagick
intl
ldap
mbstring
memcached
mysqli
opcache
pcntl
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
redis
soap
sockets
xsl
zip
Composer v2 is installed globally in all images. Please refer to their documentation for usage hints.
In case you want to use Composer v1, add the following to your Dockerfile:
COPY --from=composer:1 /usr/bin/composer /usr/local/bin/composer
This will overwrite Composer v2 with Composer v1 from their official docker image.
If you find an issue, or have a special wish not yet fulfilled, please open an issue on GitHub providing as many details as you can (the more you are specific about your problem, the easier it is for us to fix it).
Pull requests are welcome, too! Please, run make build
and make test
before attempting a pull request. Also, it would be nice if you could stick to the best practices for writing Dockerfiles.
Docker PHP Images is released under the MIT license.
This repository and it's files are based on the work of chialab/docker-php