PHP-fpm preset to run Magento 2
7.2, 7.3 and 7.4 are supported.
5.6, 7.0 and 7.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
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_PASSWORDXDEBUG_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.internalbin
build - Scripts used at image build stage(e.g. install&compile PHP extensions)cmd.sh - Docker command file executed on image startupconf
crontab - crontab file for image in cron_only or both run modecrontab-below-2.4.0 - crontab file for Magento versions prior to 2.4.0 image in cron_only or both run modessmtp.conf.tpl - ssmtp config filehooks
build - Dockerhub auto-build hookDockerfile.template - template for version-specific dockerfiles used by update scriptupdate.py - update scriptAll version-specific sources are generated in generated folder from the files in root folder.
After applying changes, run python3 update.py to generate required files and folders for specific PHP versions
To add specific PHP version, edit update.py file and add corresponding version
Content type
Image
Digest
sha256:42fcd8d12…
Size
56.9 MB
Last updated
almost 4 years ago
docker pull aheadworks/php-laravel:7.4