Docker image for Magento 2 Web container
10K+
THIS IS NOT FOR PRODUCTION USE
docker-compose.yaml
web:
image: wwright/magento2-web-local
volumes:
- F:/www/docker-magento2/dev/magento:/var/www/html/current
environment:
- XDEBUG_CONFIG=remote_host=host.docker.internal remote_enable=1
- PHP_IDE_CONFIG=serverName=local.magento2.com
depends_on:
- redis-cache
- redis-fpc
- redis-session
- db
HTTP listen port 80
HTTPS listen port 443
DocumentRoot /var/www/html/current/pub/
There are four helper scripts that come pre-installed and registerd in $PATH
magentoxmagenton98magerun2xn98magerun2magento
Runs the magento CLI as the proper user.
#!/bin/bash
su -s "/bin/bash" -c "bin/magento $*" www-data
xmagento
Runs the magento CLI as the proper user and forces XDEBUG to start. This command is used to hook XDEBUG up to command line debugging.
#!/bin/bash
su -s "/bin/bash" -c "export PHP_IDE_CONFIG='serverName=aws.solesociety.com'; php -d xdebug.remote_autostart=1 bin/magento $*" www-data
n98magerun2
Runs n98-magerun2 as the proper user.
#!/bin/bash
su -s "/bin/bash" -c "export PHP_IDE_CONFIG='serverName=aws.solesociety.com'; php -d xdebug.remote_autostart=1 bin/magento $*" www-data
xn98magerun2
Runs n98-magerun2 as the proper user and forces XDEBUG to start. This command is used to hook XDEBUG up to command line debugging.
#!/bin/bash
su -s "/bin/bash" -c "export PHP_IDE_CONFIG='serverName=aws.solesociety.com'; php -d xdebug.remote_autostart=1 bin/magento $*" www-data
php-7.3
PHP 7.3
Content type
Image
Digest
Size
317.9 MB
Last updated
about 6 years ago
docker pull wwright/magento2-web-local