magento2-docker/Readme.md

35 lines
583 B
Markdown

# Reference and build
## Start on Docker
```sh
docker compose up
```
## Setup magento2
> **_NOTE:_**
> Is linux os
```sh
chmod +x ./docker_exec
```
> Install docker
```sh
./docker_exec ./command/install
```
> Disable 2FA to login to admin
```sh
./docker_exec bin/magento module:disable Magento_TwoFactorAuth
./docker_exec bin/magento module:disable Magento_AdminAdobeImsTwoFactorAuth
```
> Compile
```sh
./docker_exec ./command/compile
```
> Gelink login to admin
```
app/etc/env.php:4
```
```
backend.frontName => 'admin_*'
```
> http://localhost:81/admin_*
>> 81: Port of docker