A simple docker setup by using Docker Composer with 3 saparate container: PHP, MYSQL and APACHE
-
Create the
infra
directory at your root directory -
Clone the repo
https://github.com/phucwan91/docker
into theinfra
directory -
Create a
Makefile
file at you root directory then copy the folowing lines to theMakefile
fileINFRA_DIR = infra include $(INFRA_DIR)/docker/Makefile
-
Update
PUBLIC_DIRECTORY
variable in the file/docker/apache/httpd-vhosts.conf
to your public directory -
Run
make init
only one time