A base LEMP stack
- Download or git this repo
- Download your prefered Laravel version from https://github.com/laravel/laravel
- Copy Laravel files into this folder
- Copy
.env.example
to.env
and complete with information - Create a
public
folder where your PHP application will work
Now run your application docker-compose up -d
- Get inside container
docker-compose exec app bash
- Install composer running
composer install
- Generate a Laravel application key
php artisan key:generate
See your application at http://localhost:<APP_PORT>