NOTE: Locally installed Composer is only be used to create the initial laravel project and dockerized environment will actually use the Composer container.
Create directories mysql and nginx.
Create Dockerfile, docker-compose.yml and dockerignore files by copying the content from this repository.
Create a new laravel project using Composer.
Run the containers:
Running the containers in detached mode:
docker-compose up -d
Run the containers in interactive mode:
docker-compose up -it
Rebuild the containers everytime and run in detached mode: