-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
91 lines (85 loc) · 1.76 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: project
recipe: drupal7
config:
via: nginx
xdebug: off
config:
php: .lando/php.ini
services:
adminer:
type: compose
services:
image: dehy/adminer
command: /bin/s6-svscan /etc/services.d
run_as_root:
- /app/.lando/adminer.sh
portforward: true
appserver:
type: 'php:7.4'
composer_version: 2
webroot: web
build_as_root:
- chmod -R a+w /app/web/
build:
- composer install
- /app/.lando/build.sh
overrides:
environment:
ENVIRONMENT_NAME: local
DB_NAME: drupal7
DB_USER: drupal7
DB_PASS: drupal7
DB_HOST: database
XDEBUG_MODE:
PHP_IDE_CONFIG: "serverName=appserver"
database:
type: 'mariadb:10.3'
mailhog:
type: mailhog
hogfrom:
- appserver
node:
type: node
# globals:
# gulp-cli: latest
tooling:
build:
description: Build an appserver.
cmd:
- appserver: /app/.lando/build.sh
# gulp:
# service: node
node:
service: node
npm:
service: node
phpcbf:
description: Run phpcbf commands.
cmd:
- appserver: /app/vendor/bin/phpcbf
phpcs:
description: Run phpcs commands.
cmd:
- appserver: /app/vendor/bin/phpcs
syncdb:
description: Synchronize local database with selected remote environment.
cmd:
- appserver: /app/.lando/syncdb.sh
update:
description: Apply required (database) updates.
cmd:
- appserver: /app/.lando/update.sh
xdebug:
description: Loads Xdebug in the selected mode
cmd:
- appserver: /app/.lando/xdebug.sh
user: root
proxy:
adminer:
- adminer-project.lndo.site
mailhog:
- mail-project.lndo.site
env_file:
- .lando/lando.env
# Tested with Lando version.
version: v3.6.1