|
1 | 1 | # Magento 2 Docker |
2 | 2 |
|
3 | 3 | ## Quick Start |
4 | | -### Configure Docker. |
| 4 | + |
| 5 | +### 1. Infrastructure part |
5 | 6 |
|
6 | 7 | When you are done with the shell script, follow the next points: |
7 | | -* Run shell script in the root directory (this may update files in your docker directory). Keep in mind, execution of this script is idempotent (_can be applied multiple times without changing the result_). |
| 8 | +1. Run shell script in the root directory (this may update files in your docker directory). Keep in mind, execution of this script is idempotent (_can be applied multiple times without changing the result_). |
8 | 9 | ```shell |
9 | 10 | sh check.sh |
10 | 11 | ``` |
11 | | -* Update env files according to your needs. Update your magento keys in composer.env |
12 | | -* Enter your IP in `.env` (usually 192.168.x.x, can be seen with the command ifconfig) LOCAL_HOST_IP |
13 | | -* For elasticsearch work execute from your OS command line: |
| 12 | +2. Update your magento keys in composer.env [Get your authentication keys](https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/prerequisites/authentication-keys.html?lang=en) |
| 13 | +3. For elasticsearch work execute from your OS command line: |
14 | 14 | ```shell script |
15 | 15 | sudo sysctl -w vm.max_map_count=262144 |
16 | 16 | ``` |
17 | 17 |
|
18 | | -### Install Magento |
| 18 | +### 2. Application part (install Magento) |
19 | 19 |
|
20 | | -* Create new folder `magento` and put your magento into it. |
21 | | - * Magento can be downloaded from https://magento.com/tech-resources/download |
22 | | - * `composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>` |
23 | | -* Execute `make docker:build && make docker:magento` command to create and run all necessary containers (without cron). |
24 | | -* To install magento enter the container with the command `make mg` and execute magento installation: |
| 20 | +1. **IMPORTANT!! Create new folder** `magento`. |
| 21 | +2. Execute from the project root `make docker:magic` command to create and run all necessary containers (without cron). |
| 22 | +3. Enter the container with the command `make mg` and run from the container |
| 23 | +```shell script |
| 24 | +composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . |
| 25 | +``` |
| 26 | +4. To install magento run inside container magento installation: |
25 | 27 | ```shell script |
26 | 28 | magento-build && magento-install |
27 | 29 | ``` |
|
0 commit comments