Docker container to install and run PHP-FPM.
PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation for PHP.
docker pull pomirleanu/php-fpm
docker run -v /path/to/your/app:/var/www/html -d pomirleanu/php-fpm
Run the PHP-FPM image, mounting a directory from your host.
docker run -it --name php-fpm -v /path/to/your/app:/var/www/html pomirleanu/php-fpm php index.php
or using Docker Compose:
version: '2'
services:
php-fpm:
container_name: php-fpm
image: pomirleanu/php-fpm
entrypoint: php index.php
volumes:
- /path/to/your/app:/var/www/html
docker logs php-fpm
or using Docker Compose:
docker-compose logs php-fpm
- bz2
- gd
- iconv
- mbstring
- mcrypt
- mysqli
- pdo_mysql
- pdo_pgsql
- pgsql
- redis
- xdebug
- zip
- json
- imagick