Skip to content

Instantly share code, notes, and snippets.

@gonssal
Last active March 4, 2020 20:36
Show Gist options
  • Save gonssal/14d26265e9b88c0bf2afb474e80ef286 to your computer and use it in GitHub Desktop.
Save gonssal/14d26265e9b88c0bf2afb474e80ef286 to your computer and use it in GitHub Desktop.
Drupal 8 + PHPMyAdmin Lando config file
name: example
recipe: drupal8
config:
webroot: web
xdebug: true
tooling:
drush:
service: appserver
cmd:
- "drush"
- "--root=/app/web"
services:
# PHPMyAdmin
pma:
type: phpmyadmin
hosts:
- database
overrides:
services:
environment:
# PMA_ARBITRARY: 1
# PMA_HOST: database
PMA_USER: drupal8
PMA_PASSWORD: drupal8
proxy:
appserver:
- example.lndo.site
- "*.example.lndo.site"
pma:
- example-pma.lndo.site
events:
# Clear caches after a database import
post-db-import:
- appserver: cd $LANDO_WEBROOT && drush cr -y
# Runs composer install after the app starts
post-start:
- appserver: cd $LANDO_MOUNT && composer install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment