Setup Laravel Sail for an existing Laravel application

Constantin Druc ยท 15 Jun, 2021

[00:00] Here I have a regular no-sail Laravel application. To set up this app using Sail we'll first need to require the laravel sail package.

[00:12] We can do that with composer require laravel/sail --dev, then we'll need to publish the sail docker-compose.yml file using php artisan sail:install. Here you'll be asked to pick the services you want to install, and I'll go with mysql, redis, meilisearch, mailhog, and selenium.

[00:43] Finally we can do sail up -d and we are ready to go.