Public | Automated Build

Last pushed: 19 days ago
Short Description
Docker container to install and run PHP-FPM
Full Description

PHP-FPM Docker Image

Docker container to install and run PHP-FPM.

What is PHP-FPM ?

PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation for PHP.

Getting image

docker pull nanoninja/php-fpm

Basic usage

docker run -v /path/to/your/app:/var/www/html -d nanoninja/php-fpm

Running your PHP script

Running image

Run the PHP-FPM image, mounting a directory from your host.

docker run -it --name phpfpm -v /path/to/your/app:/var/www/html nanoninja/php-fpm php index.php

or using Docker Compose:

version: '3'
    container_name: phpfpm
    image: nanoninja/php-fpm
    entrypoint: php index.php
      - /path/to/your/app:/var/www/html


docker logs phpfpm

or using Docker Compose:

docker-compose logs phpfpm

Installed extensions

  • bz2
  • gd
  • iconv
  • mbstring
  • mcrypt
  • mysqli
  • mongodb
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • redis
  • xdebug
  • zip
Docker Pull Command
Source Repository

Comments (0)