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


February 26th, 2021


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 ",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.