Sign inSign up

hence/php

By hence

•Updated over 10 years ago

A minimal customized PHP-FPM image based on alpine:3.2

Image
0

2.8K

hence/php repository overview

⁠Hence PHP-FPM

Note: This image is still in BETA, and is subject to change without notice.

This is our minimal customized PHP-FPM image based on alpine:3.2⁠.

It uses the s6-overlay⁠ as a process supervisor and for log rotation.

⁠Features

Builds on the hence/base⁠ image to provide a minimally-sized, fully functional MariaDB environment.

It includes both the php server and client, and a sensible configuration to begin with. Most my.conf variables can be modified at runtime through environment variables, or a custom conf file can me mounted as a volume.

Data can also be volume-mounted for easy persistence

⁠Default supervised processes:
  • s6-svscan (as PID 1)
  • php
  • php-general-logs (log fifo)
  • php-error-logs (log fifo)
  • php-slow-query-logs (log fifo)

⁠Available conf environment variables [defaults]

PHP_MEMORY_LIMIT [512M]
PHP_POST_MAX_SIZE [128M]
PHP_UPLOAD_MAX_FILESIZE [128M]
PHP_MAX_EXECUTION_TIME [180]
PHP_MAX_INPUT_TIME [180]
PHP_MAX_INPUT_VARS [1000]
PHP_DATE_TIMEZONE [UTC]
PHP_REALPATH_CACHE_SIZE [1024k]
PHP_OPCACHE_ENABLE [1]
PHP_OPCACHE_ENABLE_CLI [0]
PHP_OPCACHE_MEMORY_CONSUMPTION [128]
PHP_OPCACHE_INTERNAL_STRINGS_BUFFER [8]
PHP_OPCACHE_MAX_ACCELERATED_FILES [4000]
PHP_OPCACHE_VALIDATE_TIMESTAMPS [1]
PHP_OPCACHE_REVALIDATE_FREQ [60]
PHP_OPCACHE_FAST_SHUTDOWN [1]
PHP_OPCACHE_ENABLE_FILE_OVERRIDE [1]

⁠Authors

⁠License

MIT

Copyright (c) 2015 Therefore Interactive⁠

Tag summary

Content type

Image

Digest

sha256:1fcbf1b6e…

Size

44.8 MB

Last updated

over 10 years ago

docker pull hence/php