Public | Automated Build

Last pushed: a month 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

sudo docker pull nanoninja/php-fpm

Basic usage

sudo 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.

sudo 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'
services:
  phpfpm:
    container_name: phpfpm
    image: nanoninja/php-fpm
    entrypoint: php index.php
    volumes:
      - /path/to/your/app:/var/www/html

Running as server

sudo docker run --rm --name phpfpm -v /path/to/your/app:/var/www/html -p 3000:3000 nanoninja/php php-fpm -S="0.0.0.0:3000" -t="/var/www/html"

Logging

sudo docker logs phpfpm

or using Docker Compose :

sudo docker-compose logs phpfpm

Installed extensions

  • bz2
  • cgi-fcgi
  • Core
  • ctype
  • curl
  • date
  • dom
  • fileinfo
  • filter
  • ftp
  • gd
  • hash
  • iconv
  • imagick
  • json
  • libxml
  • mbstring
  • mcrypt
  • mongodb
  • mysqli
  • mysqlnd
  • openssl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • pgsql
  • Phar
  • posix
  • readline
  • redis
  • Reflection
  • session
  • SimpleXML
  • soap
  • SPL
  • sqlite3
  • standard
  • tokenizer
  • xdebug
  • xml
  • xmlreader
  • xmlwriter
  • zip
  • zlib
Docker Pull Command
Owner
nanoninja
Source Repository

Comments (0)