Sign inSign up

dsuite/alpine-php

By dsuite

•Updated almost 5 years ago

Image
0

2.0K

dsuite/alpine-php repository overview

⁠ alpine-php

Build Status Docker Pulls Docker Stars MicroBadger Layers (tag) MicroBadger Size (tag) License: MIT dockeri.co

A php docker image built on top of docker-suite (dsuite)⁠ dsuite/alpine-base⁠.

⁠ Available Images

TypeDocker Image
phpdsuite/alpine-php:7.1
dsuite/alpine-php:7.2
dsuite/alpine-php:7.3
dsuite/alpine-php:7.4
php-devdsuite/alpine-php:7.1-dev
dsuite/alpine-php:7.2-dev
dsuite/alpine-php:7.3-dev
dsuite/alpine-php:7.4-dev
fpmdsuite/alpine-php:7.1-fpm
dsuite/alpine-php:7.2-fpm
dsuite/alpine-php:7.3-fpm
dsuite/alpine-php:7.4-fpm
fpm-devdsuite/alpine-php:7.1-fpm-dev
dsuite/alpine-php:7.2-fpm-dev
dsuite/alpine-php:7.3-fpm-dev
dsuite/alpine-php:7.4-fpm-dev

⁠ Environment variables

A full list of dsuite/alpine-base environment variables⁠ are described in the alpine-base Readme⁠.

VariableDefaultDescription
TIMEZONEUTCSet docker OS timezone as well as PHP timezone
ENABLE_MODULES''Comma separated list of PHP modules to enable
DISABLE_MODULES''Comma separated list of PHP modules to disable
CORE_REALPATH_CACHE_SIZE4M
CORE_REALPATH_CACHE_TTL120
CORE_MEMORY_LIMIT128M
CORE_FILE_UPLOADS1
CORE_UPLOAD_TMP_DIR/tmp/php/upload
CORE_UPLOAD_MAX_FILESIZE1G
CORE_POST_MAX_SIZE1G
CORE_OUTPUT_BUFFERING0
CORE_MAX_INPUT_TIME-1
CORE_MAX_EXECUTION_TIME30
CORE_HTML_ERRORSOff
CORE_DISPLAY_ERRORSOff
CORE_ERROR_REPORTINGE_ALL
OPCACHE_ENABLE1
OPCACHE_ENABLE_CLI0
OPCACHE_ENABLE_MEMORY_CONSUMPTION128
OPCACHE_INTERNED_STRINGS_BUFFER8
OPCACHE_MAX_ACCELERATED_FILES20000
OPCACHE_MAX_WESTED_PERCENTAGE5
OPCACHE_USE_CWD1
OPCACHE_VALIDATE_TIMESTAMPS1
OPCACHE_REVALIDATE_FREQ60
OPCACHE_FILE_UPDATE_PROTECTION2
OPCACHE_REVALIDATE_PATH0
OPCACHE_SAVE_COMMENTS1
OPCACHE_LOAD_COMMENTS1
OPCACHE_FAST_SHUTDOWN1
APCU_ENABLE1
APCU_SHM_SEGMENTS1
APCU_SHM_SIZE128M
APCU_NUM_FILE_HINT7000
APCU_USER_ENTRIES_HINT4096
APCU_TTL3600
APCU_USER_TTL7200
APCU_GC_TTL3600
APCU_MAX_FILE_SIZE1M
APCU_STAT1
PHP_FPM_PMondemand
PHP_FPM_PM_MAX_CHILDREN9
PHP_FPM_PM_PROCESS_IDLE_TIMEOUT10s
PHP_FPM_PM_MAX_REQUEST200
PHP_FPM_PM_START_SERVER2
PHP_FPM_PM_MIN_SPARE_SERVERS1
PHP_FPM_PM_MAX_SPARE_SERVERS3
PHP_FPM_PM_CLEAR_ENVno
PHP_FPM_PM_CATCH_WORKERS_OUTPUTyes

⁠ Volumes

VolumeDescription
/etc/php-custom.dMount this directory into your host computer and add custom *.ini files in order to alter php behaviour
/etc/php-fpm-custom.dMount this directory into your host computer and add custom PHP-FPM *.conf files in order to alter PHP-FPM behaviour
/var/log/phpLog files will be available under this directory

⁠ Ports

PortDescription
9000PHP-FPM listening port

⁠How to use this image

⁠ Use custom php ini file

docker run -v ./my_conf.ini:/etc/php-custom.d/my_conf.ini:ro -d dsuite/alpine-php:7.4

⁠ Use your own php-fpm.conf file

docker run -v ./php-fpm.conf:/etc/php/7.X/php-fpm.conf:ro -d dsuite/alpine-php:7.4

⁠ Use custom php-fpm config file

docker run -v ./my_pool.conf:/etc/php-fpm-custom.d/my_pool.conf:ro -d dsuite/alpine-php:7.4

Tag summary

Content type

Image

Digest

Size

47.1 MB

Last updated

almost 5 years ago

docker pull dsuite/alpine-php:7.4-fpm-dev