Laravel environment on docker.
- Laravel
- PHP-FPM
- Laravel IDE Helper
- Xdebug
- Nginx
- MySQL
- Node
- Yarn
Add docker-laravel as a submodule in your project.
$ cd YOUR_PRJECT
$ git submodule add git@github.com:c8112002/docker-laravel.git docker
Copy env-exaple
as .env
.
$ cp env-example .env
Then, edit .env
for your environment.
$ docker-compose up -d
$ sh scripts/dev.sh create-project
Edit the configuration files shown below according to your environment.
APP_NAME/.env
APP_NAME/config/*.php
See the official laravel website if you want to know how to configuration more.
$ sh scripts/dev.sh watch