Public Repository

Last pushed: a year ago
Short Description
PHP7-FPM docker image
Full Description

PHP7-FPM docker image

Here is an unofficial Dockerfile for php7-fpm.

You can find several versions of this image in the dedicated docker hub page.

Usage

Get it:

docker pull diegograssato/php7-fpm

Run it:

docker run -d -p 80:80 -p 443:443 --name php7 diegograssato/php7-fpm

Personalize ports and hosts, an the docker-composer.yml

php7:
    image: diegograssato/php7-fpm
    ports:
        - 9000:9000
        - 9001:9001
    environment:
        PHP_FPM_XDEBUG_PORT: 9000
        PHP_FPM_XDEBUG_REMOTE_IP: 172.18.0.1
        PHP_FPM_XDEBUG_ENABLE: 'on'
        PHP_FPM_XDEBUG_IDE_KEY: 'PHPSTORM'
        PHP_FPM_XDEBUG_REMOTE_LOG_ENABLE: 'false'
        PHP_FPM_ENABLE_MOD: 'xsl imagick json mcrypt'
        PHP_FPM_ENABLE_CLI_MOD: 'xdebug'
        PHP_FPM_DIS_MOD: 'mongodb'
        PHP_FPM_CLI_DIS_MOD: 'xdebug'
        PHP_FPM_PRODUCTION: 'false'

Variables available:

PHP_FPM_XDEBUG_PORT: 9000 => PHP Xdebug port
PHP_FPM_XDEBUG_REMOTE_IP: 172.18.0.1 => PHP Xdebug IP
PHP_FPM_XDEBUG_ENABLE: 'on' / 'off' => PHP Xdebug Enable
PHP_FPM_XDEBUG_IDE_KEY: 'PHPSTORM' / 'netbeans' => PHP Xdebug IDE KEY
PHP_FPM_XDEBUG_REMOTE_LOG_ENABLE: 'false' / 'on' => Enable or disable PHP Xdebug remote log in /tmp/xdebug.log
PHP_FPM_ENABLE_MOD => Enable module in All environment
PHP_FPM_ENABLE_CLI_MOD => Enable module in CLI environment
PHP_FPM_DIS_MOD => Disable module in CLI environment
PHP_FPM_CLI_DIS_MOD =>Disable module in ALL environment
PHP_FPM_PRODUCTION => Disable development environment from PHP.ini settings

Available modules:

apcu
apcu_bc
bz2
curl
enchant
gd
geoip
gmp
igbinary
imagick
imap
intl
json
mcrypt
memcached
mongodb
msgpack
mysqli
opcache
pdo_mysql
pdo_sqlite
pspell
readline
recode
redis
sqlite3
xdebug
xmlrpc
xsl
xhprof

Build

Just clone this repo and run:

docker build -t diegograssato/php7-fpm .
docker push diegograssato/php7-fpm
Docker Pull Command
Owner
diegograssato