Skip to content

Instantly share code, notes, and snippets.

@colorfield
Last active October 16, 2022 06:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colorfield/62fb178ebc7d0511daec968a5197648f to your computer and use it in GitHub Desktop.
Save colorfield/62fb178ebc7d0511daec968a5197648f to your computer and use it in GitHub Desktop.
Lando configuration for Drupal 8 with several databases, MailHog and PhpMyAdmin
name: drupal-8x
recipe: drupal8
config:
webroot: web
# Get nice URL's
proxy:
mailhog:
- mail.drupal8.lndo.site
pma:
- pma.drupal8.lndo.site
services:
# CiviCRM database
civicrm_db:
type: mysql
creds:
user: civicrm
password: civicrm
database: civicrm
# Drupal 7 database
drupal7_db:
type: mysql
creds:
user: drupal7
password: drupal7
database: drupal7
# MailHog
mailhog:
# Use the latest mailhog version
type: mailhog
# List of services that we want to capture mail from
# You can run `lando info` to get a list of services that are available
# Mailhog expects that these services will be php services
hogfrom:
- appserver
# Optionally allow access to the smtp service at localhost:1026
# You will need to make sure port 1026 is open on your machine
#
# You can also set `portforward: true` to have Lando dynamically assign
# an open port. Unlike specifying an actual port setting this to true will give you
# a different port every time you restart your app
portforward: 1026
# PhpMyAdmin
pma:
type: phpmyadmin
hosts:
- database
- civicrm_db
- drupal7_db
# Add a lando vim command
tooling:
vim:
service: appserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment