Laravel Sail adds support for choosing which services you'd like installed

News

February 26th, 2021

laravel-sail.jpg

Laravel Sail, a lightweight CLI for interacting with Laravel's default docker environment, recently launched a new update that allows you to choose which services should be configured in your project's docker-compose.yml file. Some of the options include MySQL, PostgresSQL, Redis, Memcached, Meilisearch, Selenium, and Mailhog.

A new with parameter in the installer command determines what services Laravel Sail should include. For example:

1curl -s "https://laravel.build/example-app?with=mysql,redis" | bash

If you don't pass the with option, Sail will configure the default stack of MySQL, Redis, Meilisearch, Mailhog, and Selenium, and this new setting gives you more fine-grained control.

For more information on this new option, consult the user guide.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.