LC
Back to Tutorials
devopsbeginnerSeptember 20, 2024

Lando Local Development Setup

Lando configuration recipes for Drupal, WordPress, and Laravel projects.

landodockerdrupalwordpresslaravellocal-dev

Quick Lando setup recipes for common CMS and framework projects.

Drupal 9

yaml
      name: my-drupal-site
recipe: drupal9
config:
  php: '8.1'
  via: apache:2.4
  webroot: web
  database: mysql:5.7
  drush: true
  xdebug: false

services:
  pma:
    type: phpmyadmin
    hosts:
      - database

proxy:
  pma:
    - pma.my-drupal-site.lndo.site

    

WordPress

yaml
      name: my-wp-site
recipe: wordpress
config:
  php: '8.1'
  via: apache:2.4
  database: mysql:5.7
  xdebug: false

services:
  pma:
    type: phpmyadmin
    hosts:
      - database

overrides:
  appserver:
    environment:
      PHP_MEMORY_LIMIT: 256M

    

Import a database:

bash
      lando db-import database.sql.gz

    

Laravel

yaml
      name: my-laravel-app
recipe: laravel
config:
  php: '8.1'
  via: apache:2.4
  database: mysql:5.7
  cache: redis
  xdebug: false

    

Common Commands

bash
      # Start the environment
lando start

# Stop the environment
lando stop

# Rebuild (after config changes)
lando rebuild

# Access the app shell
lando ssh

# Run Drush (Drupal)
lando drush cr

# Run Artisan (Laravel)
lando artisan migrate

# Import a database
lando db-import backup.sql