Dockerized PHP configured to run Magento 2
4.8K
PHP-fpm preset to run Magento 2
8.2, 8.3 and 8.4 are supported.
5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 are still available but deprecated. No rebuilds are planned for these tags.
Starting from 7.4 Composer 2 and Magento 2.4.0+ crontab is used by default
-legacy images are built with composer 1 and an older Magento crontab file (2.3.7 and below)
config.yaml file by adding new PHP version to the out list in this filemaster branch to trigger build(optional) in case you want to get dockerfiles for a local build execute
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/data m4x0nus/multiplicator update -d /data -c /data/config.yaml
This image can run in fpm_only(default), cron_only or both.
In cron_only mode only crontab is launched with confg stored in conf/crontab
In fpm_only mode the cron is not launched.
To specify run mode, set MODE environment variable to corresponding value.
FPM_USER, default www-dataFPM_GROUP, default www-dataFPM_UIDFPM_GIDPHP_MEMORY_LIMIT, default 1024MPHP_POST_MAX_SIZE, default 256MPHP_UPLOAD_MAX_FILESIZE, default 256MPHP_MAX_INPUT_VARS, default 100000PHP_SESSION_GC_MAXLIFETIME, default 86400PHP_REALPATH_CACHE_SIZE, default 10MPHP_REALPATH_CACHE_TTL, default 7200SSMTP_HOST, default mailSSMTP_PORT, default 25SSMTP_USE_STARLTLS, defaults noSSMTP_USE_TLS, defaults noSSMTP_AUTH_USERSSMTP_AUTH_PASSWORDNEW_RELIC_KEY, empty by defaultNEW_RELIC_APPNAME, empty by default
Newrelic is enabled only if both variables are setXDEBUG_ENABLED, defaults false. Set to 1 to enable XDebugXDEBUG_IDEKEY, default PHPSTORMXDEBUG_REMOTE_ENABLE, default onXDEBUG_REMOTE_PORT, default 9001XDEBUG_REMOTE_CONNECT_BACK, default 1XDEBUG_REMOTE_HOST, default host.docker.internalout - directory to produce PHP version-specific configurationslegacy - directory containing unmaintained PHP versionsskeletons - directory containing a sample structureskeletons/php/bin
build - Scripts used at image build stage(e.g. install&compile PHP extensions)cmd.sh - Docker command file executed on image startupskeletons/php/conf
crontab - crontab file for image in cron_only or both run modessmtp.conf.tpl - ssmtp config fileskeletons/php/Dockerfile.template - template for version-specific dockerfiles used by update scriptContent type
Image
Digest
sha256:9e91197c2…
Size
87.5 MB
Last updated
5 months ago
docker pull aheadworks/php-m2:8.4