Lando is a great local development environment for Drupal and other applications that vastly simplifies local development and DevOps so you can focus on the application, rather than the environment.
Learn more about Lando on the official website: lando.dev
Follow the steps below to setup Varbase with Lando.
Install Lando on your machine. Whether you use Linux, Mac, Windows, there's a package for you. Follow this guide to install Lando on your machine.
Create a new Varbase project using composer, this will include a template file for .lando.yml, for information on how to integrate Lando on an existing project scroll to the bottom of this page.
composer create-project Vardot/varbase-project MY_VARBASE_PROJECT --no-dev --no-interaction
Use your favorite editor to edit the .lando.yml file and change the
name value to your project's name.
cd MY_VARBASE_PROJECTvim .lando.yml
Edit your settings.php file and add the following code to setup the database connection.
$databases['default']['default'] = ['database' => 'drupal8','username' => 'drupal8','password' => 'drupal8','prefix' => '','host' => 'database','port' => '3306','namespace' => 'Drupal\\Core\\Database\\Driver\\mysql','driver' => 'mysql',];
Start the Lando project and enjoy.
For more information on the Lando file configuration, read more on https://docs.lando.dev/config/drupal9.html#getting-started
Download .lando.yml from the Varbase project repo https://github.com/Vardot/varbase-project .
Proceed with steps 3, 4 and 5 mentioned above.