A simple docker setup by using Docker Composer with 3 saparate container: PHP, MYSQL and APACHE
-
Create the
infradirectory at your root directory -
Clone the repo
https://github.com/phucwan91/dockerinto theinfradirectory -
Create a
Makefilefile at you root directory then copy the folowing lines to theMakefilefileINFRA_DIR = infra include $(INFRA_DIR)/docker/Makefile -
Update
PUBLIC_DIRECTORYvariable in the file/docker/apache/httpd-vhosts.confto your public directory -
Run
make initonly one time