Public Repository

Last pushed: 6 months ago
Short Description
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 pomirleanu/php-fpm

Basic usage

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

Running your PHP script

Running image

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

Logging

docker logs php-fpm

or using Docker Compose:

docker-compose logs php-fpm

Installed extensions

  • bz2
  • gd
  • iconv
  • mbstring
  • mcrypt
  • mysqli
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • redis
  • xdebug
  • zip
  • json
  • imagick
Docker Pull Command
Owner
pomirleanu