- richarvey/nginx-php-fpm:latest
- redis:5.0-alpine
- bitnami/mariadb:latest
- Dockerfile is base on "richarvey/nginx-php-fpm:latest" , optional to build your own image including your code.
- When you create a laravel project, it is quite annoying with the AppKey, database, etc. We simply it in one script, and using Docker.
-
- create new docker-compose , update all related name
-
- rename the folder
-
- remove git ( you should create your own git )
To use it, simply:
- git clone this repository
- Run following script ( generate laravel APP_Key , and create docker-compose for you)
cd laravel-project-starter
cd docker
./create_project.sh [Your project name] [your port]
- then you can start your docker-compose
docker-compose up -d
- It will create a database, Redis, and the web service.
- Install the packages after you get in to the web service container
composer install
- laravel paginator is now default to use Tailwind CSS, please uncomment the "Paginator::useBootstrap();" at "AppServiceProvider" if you want to use the boostrap style
Any problem, please contact alan@solutionforest.net