Vitancourt / docker-magento-2

Docker environment for work with Magento 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magento setup

Permissions

Give permissions to scripts

Run:

chmod -R +x bin/
mkdir web

Container installation

Run:

bin/setup

Create a new Magento project

Run:

bin/setup-magento-new

For other Magento version change MAGE_VERSION in bin/setup-magento-new

For an existing project

Run:

cd web && git clone myproject

Fix file and folder permissions

Run:

bin/fix-permissions

Available commands

Start containers

bin/start

Stop containers

bin/stop

Restart containers

bin/restart

Required: Elastic search configutarions

Set vm.max_map_count to at least 262144edit The vm.max_map_count kernel setting must be set to at least 262144 for production use.

How you set vm.max_map_count depends on your platform:

Linux

The vm.max_map_count setting should be set permanently in /etc/sysctl.conf:

grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144

To apply the setting on a live system, run:

sysctl -w vm.max_map_count=262144

Create admin user

Go to bin/create-admin-user file and edit admin user data, save and run:

bin/create-admin-user

Run bin/magento commands

To run any bin/magento command, just run:

bin/magento command

Run any command in php container

bin/cli command

Acess php container

bin/php

Use composer in php containers

bin/composer command

About

Docker environment for work with Magento 2


Languages

Language:Shell 61.2%Language:Dockerfile 38.8%