These images provide an easy, ready-to-use solution for php web development with docker. All images are based on the official php alpine images for 7.0, 7.1 and 7.2 with additional php modules and composer installed. Besides that, they use gosu to execute commands as a non-root user.
Cherry on top: Files created on volumes inherit your local user ID and group ID.
There are three different "flavors":
The plain PHP images have the following extra modules enabled:
Use this image for previews or for tasks on the console, where xdebug would be a serious performance impact (e.g. for installing composer packages).
This image extends the Plain PHP image and comes with XDebug support. The XDebug configuration can be found under /usr/local/etc/php/conf.d/xdebug.ini (in case you want to override it) and looks like this:
xdebug.remote_enable=on
xdebug.remote_autostart=1
xdebug.remote_connect_back=off
xdebug.remote_port=9000
If you want to do some performance testing with Blackfire.io, you can use this image.
7.0, 7.0.30 Plain PHP 7.07.0-xdebug, 7.0.30-xdebug PHP 7.0 with XDebug support7.0-blackfire, 7.0.30-blackfire PHP 7.0 with Blackfire support7.1, 7.1.17 Plain PHP 7.17.1-xdebug, 7.1.17-xdebug PHP 7.1 with XDebug support7.1-blackfire, 7.1.17-blackfire PHP 7.1 with Blackfire support7.2, 7.2.5 Plain PHP 7.27.2-xdebug, 7.2.5-xdebug PHP 7.2 with XDebug support7.2-blackfire, 7.2.5-blackfire PHP 7.2 with Blackfire supportBest way to use these images is in conjunction with docker-compose. Examples are included in the corresponding github repository.
The dockerfiles along with a make file to build the images on your own can be found here.
Content type
Image
Digest
Size
56.9 MB
Last updated
about 8 years ago
docker pull elbcoast/php:7.2-blackfire