https://github.com/markshust/docker-magento2-php
This image is built from the official php repository and contains PHP configurations for Magento 2.
https://github.com/markshust/docker-magento2-php
Last synced: about 1 year ago
JSON representation
This image is built from the official php repository and contains PHP configurations for Magento 2.
- Host: GitHub
- URL: https://github.com/markshust/docker-magento2-php
- Owner: markshust
- License: mit
- Created: 2015-10-22T20:40:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T03:18:50.000Z (over 8 years ago)
- Last Synced: 2024-05-02T00:43:26.437Z (about 2 years ago)
- Language: Shell
- Size: 69.3 KB
- Stars: 51
- Watchers: 12
- Forks: 62
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DEPRECATED
This repo has been migrated into https://github.com/markoshust/magento2-docker - please see this repo for future updates!
# Versions
- [`5.6-fpm-1` (_Dockerfile_)](https://github.com/mageinferno/docker-magento2-php/tree/5.6-fpm-1/Dockerfile)
- [`7.0-fpm-1` (_Dockerfile_)](https://github.com/mageinferno/docker-magento2-php/tree/7.0-fpm-1/Dockerfile)
- [`7.1-fpm-0` (_Dockerfile_)](https://github.com/mageinferno/docker-magento2-php/tree/7.1-fpm-0/Dockerfile)
# Description
This image is built from the official [`php`](https://hub.docker.com/_/php/) repository and contains PHP configurations for Magento 2.
# What's in this image?
This image installs the following base packages:
- `composer`
- `php-fpm`
This image also installs the following PHP extensions, which are the minimally required extensions to install and run Magento 2:
- `bcmath`
- `gd`
- `intl`
- `mbstring`
- `mcrypt`
- `pdo_mysql`
- `soap`
- `xsl`
- `zip`
# Variables
The following variables may be set to control the PHP environment:
- `PHP_MEMORY_LIMIT`: (default `2048M`) Set the memory_limit of php.ini
- `PHP_PORT`: (default: `9000`) Set a custom PHP port
- `PHP_PM`: (default `dynamic`) Set the process manager
- `PHP_PM_MAX_CHILDREN`: (default: `10`) Set the max number of children processes
- `PHP_PM_START_SERVERS`: (default: `4`) Set the default number of servers to start at runtime
- `PHP_PM_MIN_SPARE_SERVERS`: (default `2`) Set the minumum number of spare servers
- `PHP_PM_MAX_SPARE_SERVERS`: (default: `6`) Set the maximum number of spare servers
- `APP_MAGE_MODE`: (default: `default`) Set the MAGE_MODE
# One-off containers
This image can run one-off PHP commands, such as:
`docker run --rm --name php-test mageinferno/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 mageinferno/magento2-php:{PHPVERSION}-fpm-0 ./bin/magento`
# Docker Compose
Please see [https://github.com/mageinferno/magento2-docker-compose](https://github.com/mageinferno/magento2-docker-compose) for more detailed instructions and an example development environment using Docker Compose.