PHP image to use for local development. Image includes the following dependencies :
Image is based on bitnami/bitnami-docker-php-fpm
Additional PHP-FPM configuration files can be loaded at runtime by mounting the /opt/bitnami/php/etc/php-fpm.d/ directory.
In order to use the Blackfire facilities, blackfire.server_id and blackfire.server_token must be provided.
The Blackfire blackfire.agent_socket should also be provided in order to connect to the blackfire/blackfire docker instance.
A file named blackfire.conf can be mounted to the container in the /opt/bitnami/php/etc/php-fpm.d/ directory containing the following (adjust the values):
[www]
php_admin_value[blackfire.agent_socket] = "tcp://blackfire:8707"
php_admin_value[blackfire.server_id] = "e0b30241-a25d-4162-9ebb-329f784f1fc7"
php_admin_value[blackfire.server_token] = "3ac2260e038f138a5bca515b72c0205117d886777cf6472b14beabb704e06aa1"
Xdebug is disabled by default.
To enable Xdebug, create a file named xdebug.ini containing the following:
[xdebug]
zend_extension=xdebug.so
The file can then be mounted to the container in the following path to be loaded at runtime:
/opt/bitnami/php/etc/conf.d/
The container's PHP_IDE_CONFIG environment variable is exposed to PHP scripts.
See http://gitlab.lahautesociete.int/lahautesociete/guidelines-dev/blob/master/xdebug-in-a-docker-container.md
for details on how to properly set up remote debugging in PHPStorm.
Content type
Image
Digest
Size
436.1 MB
Last updated
almost 8 years ago
docker pull lahautesociete/php-dev