Project Starter For Web Application Development with Laravel, MySQL, Nginx, and Docker.
- Docker
- Dockerfile with Alpine
- Nginx
- Laravel 9
- MySQL 8
- PHP 8
- Node 16
- NPM 8
- PHP Prettier
- Github Action Issue Branch
- Github Action Check Code Format Using Prettier
- Github Action Issue Autolink On Pull Request
Follow the instruction below to setting up your project.
- Download and Install Docker
- By Clicking Use This Template Button or You can Click Here
- Create .env file for laravel environment from .env.example on src folder
- Run command
docker-compose build
on your terminal - Run command
docker-compose up -d
on your terminal - Run command
composer install
on your terminal after went into php container on docker - Run command
docker exec -it php /bin/sh
on your terminal - Run command
chmod -R 777 storage
on your terminal after went into php container on docker - If app:key still empty on .env run
php artisan key:generate
on your terminal after went into php container on docker - To run artisan command like migrate, etc. go to php container using
docker exec -it php /bin/sh
- Go to http://localhost:8001 or any port you set to open laravel
Note: if you got a permission error when running docker, try running it as an admin or use sudo in linux