Public | Automated Build

Last pushed: 6 months ago
Short Description
php 5.6
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: '2'
services:
  phpfpm:
    container_name: phpfpm
    image: nanoninja/php-fpm
    entrypoint: php index.php
    volumes:
      - /path/to/your/app:/var/www/html

Logging

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
Owner
jpacg
Source Repository