This repository contains a Dockerised Laravel application that's easy to understand and use. It has a database and redis running. It comes with a Worker for potential jobs you might have and a Caddy Web server.
Youtube link for the video that goes through this repository
This repository contains a Laravel project setup with Docker, it also includes Postgres and Redis with a Queue Worker.
Clone the repository
Create .env
file from .env.example
file
cp .env.example .env
Change the values of the .env
file to the ones you want
Go to the Laravel project dir
cd
laravel-best
Create .env
file from .env.example
file
cp .env.example .env
Change the values of the .env.
file for the Laravel project to match the .env
file in the root of the project.
docker compose up --build --detach
Run migrations
php artisan migrate
Run the app
php artisan serve
SSH into the app container
docker compose exec app bash
Run migrations
php artisan migrate
Run the app
php artisan serve