Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP images based on Debian distribs
Full Description

Docker Images for PHP

PHP Docker images based on Debian distribs.


Supported tags and respective Dockerfile links

Image Dockerfile Info
5.4-apache apache/5.4/Dockerfile
5.6-apache, latest apache/5.6/Dockerfile)

PHP modules

Some modules are installed by default :

  • php5-cli
  • php5-curl
  • php5-intl
  • php5-common
  • php5-mcrypt
  • php5-mysql
  • php5-xsl
  • php5-gd
  • php5-memcached


Path Info
/var/www/project App sources directory (also used as default docroot)

Exposed ports

Port Info
80 Apache default port
443 Apache SSL port

Environment variables

There are environment variables which can be passed to images on docker run

Variable Description
PHP_OPCACHE_MEM_SIZE Memory amount to use to store opcode cache
PHP_TIMEZONE PHP Timezone for both webserver/FPM and CLI
PHP_MEMORY_LIMIT Memory limit for php_mods or FPM
PHP_MAX_EXECUTION_TIME Max execution time
PHP_MAX_INPUT_TIME Max input time
PHP_UPLOAD_MAX_FILESIZE Max size for uploaded files
PHP_POST_MAX_SIZE Max size for post data
PHP_ERROR_REPORTING Error reporting configuration
PHP_DISPLAY_ERROR Error display configuration
PHP_SESSION_SAVE_HANDLER Handler to use to store session
PHP_SESSION_SAVE_PATH Path where to store sessions
XDEBUG_ENABLE Enable xdebug (will install module)
XDEBUG_REMOTE_HOST XDebug remote host configuration (will be configured if XDebug is enabled
XDEBUG_REMOTE_PORT XDebug remote port configuration (will be configured if XDebug is enabled
BLACKFIRE_ENABLE Enable Blackfire probe (will install module)
BLACKFIRE_AGENT_HOST Blackfire agent host (default is blackfire:8707)
Docker Pull Command
Source Repository