Skip to content

Instantly share code, notes, and snippets.

@RishiKulshreshtha
Last active June 27, 2020 04:58
Show Gist options
  • Save RishiKulshreshtha/69265537e2d726ed970181476f76d348 to your computer and use it in GitHub Desktop.
Save RishiKulshreshtha/69265537e2d726ed970181476f76d348 to your computer and use it in GitHub Desktop.
A packed lando configuration containing essentials
name: drupal
recipe: drupal9
config:
php: '7.3'
via: nginx
webroot: .
xdebug: true
drush: ^10
database: mysql:5.7
services:
appserver:
overrides:
environment:
PHP_IDE_CONFIG: "serverName=appserver"
DRUSH_OPTIONS_URI: "https://drupal.lndo.site/"
build_as_root:
- apt-get clean && apt-get update -y && apt-get upgrade -y && apt-get install vim gpg locales -y
- echo "LC_ALL=en_US.UTF-8" >> /etc/environment && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && echo "LANG=en_US.UTF-8" > /etc/locale.conf && locale-gen en_US.UTF-8
build:
- composer install
- composer require drush/drush
- cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
tooling:
xdebug-on:
service: appserver
description: Enable xdebug for nginx.
cmd: docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm
user: root
xdebug-off:
service: appserver
description: Disable xdebug for nginx.
cmd: rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm
user: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment