Sign inSign up

classes/php

By classes

Updated almost 5 years ago

Image
0

776

classes/php repository overview

PHP-FPM Docker Images

Docker container to install and run PHP-FPM.

Project Goal

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.

Installed extensions

  • amqp
  • bcmath
  • Core
  • ctype
  • curl
  • date
  • dom
  • fileinfo
  • filter
  • ftp
  • gd
  • gettext
  • gmp
  • hash
  • iconv
  • intl
  • json
  • libxml
  • mbstring
  • mcrypt
  • mongodb
  • mysqli
  • mysqlnd
  • openssl
  • pcntl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • Phar
  • posix
  • readline
  • redis
  • Reflection
  • session
  • shmop
  • SimpleXML
  • soap
  • sockets
  • SPL
  • sqlite3
  • standard
  • swoole
  • sysvmsg
  • sysvsem
  • sysvshm
  • tokenizer
  • xhprof
  • xml
  • xmlreader
  • xmlrpc
  • xmlwriter
  • Zend OPcache
  • zip
  • zlib

Installed Zend Modules

  • Zend OPcache

Installed Others

  • PHP_CodeSniffer

Pull latest image

docker pull classes/php

Running PHP apps

Running image

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"
Running as server
docker run -d --name php-fpm -v /path/to/your/app/www:/var/www/html classes/php
Logging
docker logs php-fpm

Listing installed extensions

docker run --rm -it classes/php php -m

Tag summary

Content type

Image

Digest

Size

187.7 MB

Last updated

almost 5 years ago

docker pull classes/php