Docker container to install and run PHP-FPM.
Out of the box, fully loaded PHP-FPM docker images, that can support all my PHP projects. I work with Yii2 & Laravel. The images are no light weight.
docker pull classes/php
Run the PHP-FPM image, mounting a directory from your host.
docker run -it --name php-fpm -v /path/to/your/app/www:/var/www/html classes/php
or using Docker Compose:
version: '3'
services:
php-fpm:
container_name: php-fpm
image: classes/php
volumes:
- "/path/to/your/app/www:/var/www/html"
docker run -d --name php-fpm -v /path/to/your/app/www:/var/www/html classes/php
docker logs php-fpm
docker run --rm -it classes/php php -m
Content type
Image
Digest
Size
187.7 MB
Last updated
almost 5 years ago
docker pull classes/php