REQUIREMENTS
Docker https://docs.docker.com/desktop/install/windows-install/
Git https://git-scm.com/download/win
STOP LOCAL SERVERS (XAMPP, OPENSERVER, DENWER, APACHE2, NGINX, MYSQL, etc)
CLONE THIS REPO VIA GIT (30min)
git clone [email protected]:alexamanov/m2-compose.git
OR DOWNLOAD ZIP
OPEN PROJECT IN GIT BASH
cd m2-compose
BUILD AND RUN APP (30min)
docker-compose up --build -d
IMPORT DATABASE (30min)
Go to container mysql:
docker exec -it mysql bash
Import database:
mysql -u docker -pdocker m2 < /home/m2.sql
FRONT
ADMIN
http://localhost/admin
Username: admin
Password: a111111
GO TO PHP CONTAINER
docker exec -it php bash
or via docker desktop
PHPMYADMIN
http://localhost:8088/
docker | docker
MAILHOG
PHPSTORM & XDEBUG
Open m2-compose/ce244 directory in PHPSTORM
Go to File > Settings > PHP > Servers
Name: PhpServerBase
Host: 127.0.0.1
Use path mapping: true
Absolute path on the server: /var/www/html
Go to File > Settings > PHP
Change CLi Interpreter
Result:
AFTER INSTALLATION TO RUN USE
docker-compose up -d
DOWN APP (!!STOP)
docker-compose down