|
|
8 gadi atpakaļ | |
|---|---|---|
| .. | ||
| bin | 8 gadi atpakaļ | |
| conf | 8 gadi atpakaļ | |
| Dockerfile | 8 gadi atpakaļ | |
| LICENSE.md | 8 gadi atpakaļ | |
| README.md | 8 gadi atpakaļ | |
This image is built from the official php repository and contains PHP configurations for Magento 2.
This image installs the following base packages:
composerphp-fpmThis image also installs the following PHP extensions, which are the minimally required extensions to install and run Magento 2:
bcmathgdintlmbstringmcryptpdo_mysqlsoapxslzipThe following variables may be set to control the PHP environment:
PHP_MEMORY_LIMIT: (default 2048M) Set the memory_limit of php.iniPHP_PORT: (default: 9000) Set a custom PHP portPHP_PM: (default dynamic) Set the process managerPHP_PM_MAX_CHILDREN: (default: 10) Set the max number of children processesPHP_PM_START_SERVERS: (default: 4) Set the default number of servers to start at runtimePHP_PM_MIN_SPARE_SERVERS: (default 2) Set the minumum number of spare serversPHP_PM_MAX_SPARE_SERVERS: (default: 6) Set the maximum number of spare serversAPP_MAGE_MODE: (default: default) Set the MAGE_MODEThis image can run one-off PHP commands, such as:
docker run --rm --name php-test markoshust/magento2-php echo "Hello world"
Application code is placed in /var/www/html. You can also attach a volume to that location, then run Magento-specific commands such as the Magento CLI tool:
docker run --rm --name mysite -v /Users/username/Sites/mysite/app/code:/var/www/html/app/code markoshust/magento2-php:{PHPVERSION}-fpm-0 ./bin/magento