Magento2 docker container
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
conf
.gitignore
Dockerfile
LICENSE
README.md

README.md

Magento 2 PHP FPM

Magento2 docker container

Environment variables:

  WWW_DATA_UID 1000
  WWW_DATA_GID 1000

  PHP_MEMORY_LIMIT 2G
  APP_MAGE_MODE developer
  PHP_PORT 9000
  PHP_PM dynamic
  PHP_PM_MAX_CHILDREN 10
  PHP_PM_START_SERVERS 4
  PHP_PM_MIN_SPARE_SERVERS 2
  PHP_PM_MAX_SPARE_SERVERS 6
  
  XDEBUG_PORT 9000
  XDEBUG_NESTING_LEVEL 512

For xdebug there are the following config settings:

  XDEBUG_CONFIG
  PHP_IDE_CONFIG

To run a command on the machine with the www-data user run.sh. For example:

  $ docker exec -it <container_id_or_name> run.sh php bin/magento
  $ docker exec -it <container_id_or_name> run.sh composer