Skip to content

alexamanov/m2-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REQUIREMENTS

Docker https://docs.docker.com/desktop/install/windows-install/ DOCKER VM
Git https://git-scm.com/download/win GIT

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

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 IMPORT

FRONT

https://localhost/

FRONT

ADMIN

https://localhost/admin
Username: admin
Password: a111111

ADMIN

GO TO PHP CONTAINER

docker exec -it php bash
or via docker desktop

PHPMYADMIN

https://localhost:8088/
docker | docker

PMA

MAILHOG

https://localhost:8025/

MAIL-1 MAIL-2

PHPSTORM & XDEBUG

Open m2-compose/ce244 directory in PHPSTORM

Go to File > Settings > PHP > Servers

PHPSTORM-XDEBUG-1

Name: PhpServerBase
Host: 127.0.0.1
Use path mapping: true
Absolute path on the server: /var/www/html

PHPSTORM-XDEBUG-2

Go to File > Settings > PHP
Change CLi Interpreter
PHPSTORM-XDEBUG-4 PHPSTORM-XDEBUG-5 PHPSTORM-XDEBUG-6

Result: PHPSTORM-XDEBUG-3

AFTER INSTALLATION TO RUN USE

docker-compose up -d

DOWN APP (!!STOP)

docker-compose down