Fast&compact full-featured Magento 2 box
10K+
Base image for Magento 2 development.
Development purposes only
This image doing a lot of "wrong" things useful at dev stage, however it is extremely dangerous at production(e.g. runs php-fpm as root)
To simplify things this image contains multiple services inside(nginx, php-fpm, ssh). This allows to run Magento CLI scripts, solves performance issues on Win/Mac with mounted bind volumes.
This repo uses Multiplicator python script to produce multiple Dockerfiles and build environments from the initial directory structure containing static assets and Jinja2 templates.
Initial directory structure should be under the skeletons directory.
Built items are placed into the out directory.
See https://github.com/m4x0nus/Multiplicator for more details.
legacy directory is used to keep outdated Magento versions to be able to build them manually.
config.yaml file by adding new magento version to the out list in this filephp_deps variable contains Magento family you are adding and add one if it is not listed yetmaster branch to trigger buildOnly Magento 2.4.4-p2 and newer are autoupdated. All legacy Magento versions are left for reference only and should be upated and built manually.
Available tags:
This variables can be passed during container run with -e flag or docker-compose.yml environment node.
MAIL_HOST - mail host server name, all mail is redirected hereSSH_PASSWORD - SSH/SFTP service root password. Default is rootMYSQL_HOST - MySQL server hostname.MYSQL_PORT - MySQL server port. Default 3306MYSQL_USER- MySQL userMYSQL_PASSWORD - MySQL passwordMYSQL_DATABASE - MySQL database to use.MAGENTO_URL - Magento URL.MAGENTO_ADMIN_USERNAME - Magento admin usernameMAGENTO_ADMIN_PASSWORD - Magento admin passwordMYSQL_HOSTMYSQL_DATABASEversion: '3.7'
services:
db:
environment:
- MYSQL_ROOT_PASSWORD=myrootpassword
- MYSQL_USER=magento
- MYSQL_PASSWORD=magento
- MYSQL_DATABASE=magento
image: mysql:8.0
volumes:
- data-db:/var/lib/mysql
mail:
image: mailhog/mailhog
command:
- -smtp-bind-addr
- 0.0.0.0:25
- -ui-bind-addr
- 0.0.0.0:80
- -api-bind-addr
- 0.0.0.0:80
ports:
- 1388:80
user: root
web:
image: aheadworks/m24dev-ce:2.4.4-p2-8.1-sampledata
environment:
- MAIL_HOST=mail
- MAGENTO_URL=http://local.magento:1380
- MAGENTO_TIMEZONE=Pacific/Auckland
- MAGENTO_DEFAULT_CURRENCY=USD
- MAGENTO_ADMIN_FIRSTNAME=Admin
- MAGENTO_ADMIN_LASTNAME=MyStore
- [email protected]
- MAGENTO_ADMIN_USERNAME=master
- MAGENTO_ADMIN_PASSWORD=master123
- MAGENTO_ROOT=/var/www/html
- MAGENTO_LANGUAGE=en_GB
- MYSQL_HOST=db
- MYSQL_ROOT_PASSWORD=myrootpassword
- MYSQL_USER=magento
- MYSQL_PASSWORD=magento
- MYSQL_DATABASE=magento
- AUTO_SETUP=1
- COMPOSER_AUTH=
- SSH_PASSWORD=pushkin
ports:
- '1080:80'
- '1022:22'
volumes:
- data-files:/var/www/html
volumes:
data-db: null
data-files: null
Content type
Image
Digest
sha256:76760ff50…
Size
196.3 MB
Last updated
over 3 years ago
docker pull aheadworks/m2dev-ce:2.3-7.2