rustic/php-fpm

By rustic

Updated 3 months ago

PHP-FPM multi-arch builds from an Alpine base adding all recommended WordPress modules.

Image
Languages & frameworks
Web servers
2

7.5K

rustic/php-fpm repository overview

php-fpm

Docker images for PHP based on the official images

This container follows the Wordpress recommendations for additional PHP modules, error reporting and Opcache configuration.

License and Architecture

GitHub
Arch Arch

Latest Release

Docker Image Version (latest semver)

Current Releases

Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver) Docker Image Version (tag latest semver)

Includes the following additional PHP modules:

Core Extensions
  • bcmath
  • bz2
  • calendar
  • exif
  • gd (with freetype, jpeg, and webp support)
  • gettext
  • intl
  • mysqli
  • opcache (built-in on PHP 8.5+)
  • pdo_mysql
  • soap
  • sockets
  • xsl
  • zip
Caching Extensions
  • apcu (in-memory key-value store)
  • memcached (with igbinary serialization)
  • redis (with igbinary serialization and lzf compression)
Image Processing
  • imagick (with igbinary serialization)
Serialization
  • igbinary (faster drop-in replacement for PHP's native serializer, used by imagick, memcached and redis)
PHP ini Configuration

The following configuration is applied out of the box:

Opcache
  • opcache.memory_consumption=128
  • opcache.interned_strings_buffer=8
  • opcache.max_accelerated_files=4000
  • opcache.revalidate_freq=2
APCu
  • apc.enabled=1
  • apc.shm_size=64M
  • apc.ttl=7200
Error Logging
  • Errors logged to stderr, display off, production-safe settings

Usage

An example Docker Compose file:

services:
  nginx:
    image: nginx:latest
    volumes:
      - ./conf.d/nginx:/etc/nginx/conf.d
      - ./html:/var/www/html
  php-fpm:
    image: rustic/php-fpm:latest
    user: "101:101"
    volumes:
      - ./html:/var/www/html
      - ./phpextras.ini:/usr/local/etc/php/conf.d/phpextras.ini

Tag summary

Content type

Image

Digest

sha256:a4d016e45

Size

131.6 MB

Last updated

8 months ago

docker pull rustic/php-fpm