Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

PHP-FPM Docker Image

This is a PHP-FPM Docker image from the official docker php image with additional extensions installed via docker-php-ext-install from the official image.

Extensions not available by default are downloaded manually and put into the proper extension directory as per the official image at /usr/src/php/ext/ and then enabled via docker-php-ext-install.

Additional extension enabled/installed

  • mbstring
  • memcached
  • opcache
  • pdo_mysql
  • redis
  • zip


To use this image you can define one or more pool definitions by mounting a volume to
/usr/local/etc/php/fpm/pool.d/ .

This image also uses it's own php.ini . You can override it by mounting -v or using COPY in a Dockerfile to the container directory /usr/local/etc/php/ .

use a custom php.ini

docker run -it --rm -v "$PWD"/conf/php.ini:/usr/local/etc/php pmcjury/docker-php-fpm

#### mount the current dir and a php-fpm pool configuration

docker run -it --rm --name my-fpm-php-app -v "$PWD":/var/www/html -v "$PWD"/conf/pool.d:/usr/local/etc/php/fpm/pool.d pmcjury/docker-php-fpm


Docker Pull Command
Source Repository