Folder structure

After creation, your project should look like this:

├── 📁 node_modules
├── 📄 package.json
└── 📄 README.md

Looks empty, isn't it? Well, that is because we haven't installed Magento 2 yet.

To install Magento 2 you need to bootstrap the project with start command.

After Magento 2 installation folder structure should look

├── 📁 app
├── 📁 bin
├── 📁 dev
├── 📁 generated
├── 📁 lib
├── 📁 node_modules
|  ├── 📁 .create-magento-app-cache
|  |  ├── 📁 nginx
|  |  |  └── 📁 conf.d
|  |  |     └── 📄 default.conf
|  |  ├── 📁 ssl-terminator
|  |  |  └── 📁 conf.d
|  |  |     └── 📄 default.conf
|  |  ├── 📁 varnish
|  |  |  └── 📄 default.vcl
|  |  ├── 📄 port-config.json
|  |  ├── 📄 php-fpm.conf
|  |  ├── 📄 php.ini
|  |  ├── 📄 mariadb.cnf
|  |  └── 📄 .magentorc
|  ... 📁 other packages
├── 📁 phpserver
├── 📁 pub
├── 📁 setup
├── 📁 var
├── 📁 vendor
├── 📄 ... Magento 2 files
├── 📄 cma.js
├── 📄 package.json
└── 📄 README.md

Inside node_modules there is .create-magento-app-cache folder. It contains all configuration files:

  • PHP-FPM configuration file.

  • PHP configuration file.

  • Nginx configuration file.

  • SSL-Terminator (Nginx) configuration file.

  • Varnish configuration file.

  • MariaDB configuration file.

  • CLI configuration file.

  • Port configuration file.

In your projects root directory also will be created cma.js file that contains CMA configuration: Magento configuration, Docker services configuration, host and SSL configuration.

Last updated