-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.lando.yml
35 lines (35 loc) · 929 Bytes
/
.lando.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: drupal-lando-starterkit
recipe: drupal8
config:
webroot: web
php: '7.3'
via: apache:2.4
database: mysql:5.7
xdebug: true
config:
database: drupal8
username: drupal8
password: drupal8
host: database
# for mysql
port: 3306
services:
appserver:
scanner: false
build:
- cd /app/web/ && composer install
run:
- cp /app/web/sites/default/default.settings.local.php /app/web/sites/default/settings.local.php
- cd /app/web/ && drush sql-cli < ../db_dump/drupal.sql
- cd /app/web/ && drush cr
tooling:
xdebug-on:
service: appserver
description: Enable xdebug for apache.
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload"
user: root
xdebug-off:
service: appserver
description: Disable xdebug for apache.
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
user: root