dnafactory/php

By dnafactory

Updated 3 days ago

Adobe Commerce (Magento 2) ready-to-use php image

Image
Languages & frameworks
0

2.0K

dnafactory/php repository overview

Quick reference

Refer to official PHP image documentation.


Built with all PHP extensions required by Adobe Commerce. Plus:

  • xdebug
  • composer
  • imagick
Env configuration

Use env variables to configure multiple scenarios as follows.

Enable xdebug
APP_DEBUG=true

You can use default config or override/extend it with your own. eg with default config:

docker run -e APP_DEBUG=true dnafactory/php php examplescript.php

then listen to remote connections with passphrase PHPSTORM

Disable one or more PHP modules
PHP_DISABLE_EXT="mysqli pdo_mysql soap sodium"
Other useful env vars (VAR={default value})
ENV XDEBUG_REMOTE_HOST="host.docker.internal"
ENV XDEBUG_IDEKEY="PHPSTORM"
ENV PHP_TIMEZONE="UTC"
ENV PHP_MEMORY_LIMIT="2G"
ENV OPCACHE_MAX_ACCELERATED_FILES=90000

ENV FPM_PM="dynamic"
ENV FPM_PM_MAX_CHILDREN=10
ENV FPM_PM_START_SERVERS=5
ENV FPM_PM_MIN_SPARE_SERVERS=3
ENV FPM_PM_MAX_SPARE_SERVERS=8
ENV FPM_PM_MAX_REQUESTS=200

ENV PHP_ACCESS_LOG="/proc/self/fd/2"
ENV PHP_ERROR_LOG="/proc/self/fd/2"  

Happy Coding!

Tag summary

Content type

Image

Digest

sha256:eff565e91

Size

66 MB

Last updated

3 days ago

docker pull dnafactory/php:8.5-fpm-alpine