-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lando.dist.yml
108 lines (108 loc) · 3.24 KB
/
.lando.dist.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: localgov-micro
recipe: drupal10
config:
webroot: web
php: '8.2'
proxy:
mailhog:
- mail.localgov-micro.lndo.site
adminer:
- adminer.localgov-micro.lndo.site
appserver:
# Microsite domains
- localgov-micro.lndo.site
- localgov-micro-1.lndo.site
- localgov-micro-2.lndo.site
- localgov-micro-3.lndo.site
- localgov-micro-4.lndo.site
- localgov-micro-5.lndo.site
# PHPUnit test domains
- appserver
- group-a1.appserver
- group-a2.appserver
- group-a3.appserver
- group-b1.appserver
- group-b2.appserver
- group-b3.appserver
services:
appserver:
xdebug: true
scanner:
retry: 5
build_as_root:
# This disables Xdebug during build, but puts all dependencies in place
# ready for the tooling to enable Xdebug.
- rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload
overrides:
environment:
DRUSH_OPTIONS_ROOT: '/app/web'
DRUSH_OPTIONS_URI: 'https://localgov-micro.lndo.site'
SIMPLETEST_DB: 'mysql://database:database@database/database'
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", { "chromeOptions": { "w3c": false } }, "http://chromedriver:4444/wd/hub"]'
BROWSERTEST_OUTPUT_DIRECTORY: '/app/web/sites/simpletest/browser_output'
BROWSERTEST_OUTPUT_BASE_URL: 'https://localgov-micro.lndo.site'
# Support debugging CLI with Xdebug.
PHP_IDE_CONFIG: "serverName=appserver"
XDEBUG_SESSION: "lando"
build:
- mkdir -p web/sites/simpletest/browser_output
database:
creds:
user: database
password: database
database: database
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: true
adminer:
type: compose
services:
image: dehy/adminer
command: '/bin/s6-svscan /etc/services.d'
portforward: true
chromedriver:
type: compose
services:
image: robcherry/docker-chromedriver:latest
environment:
CHROMEDRIVER_WHITELISTED_IPS: ""
CHROMEDRIVER_URL_BASE: "/wd/hub"
security_opt:
- seccomp:unconfined
expose:
- '4444'
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
tooling:
composer:
service: appserver
cmd: /usr/local/bin/composer
deprecated:
service: appserver
cmd: 'bash -c "/app/bin/phpstan analyse -c /app/phpstan.neon /app/web/profiles/contrib/localgov_*/ /app/web/modules/contrib/localgov_*/ /app/web/themes/contrib/localgov_*"'
drush:
service: appserver
cmd: '/app/bin/drush'
phpcs:
service: appserver
cmd: '/app/bin/phpcs'
phix:
service: appserver
cmd: '/app/bin/phpcbf'
phpstan:
service: appserver
cmd: '/app/bin/phpstan'
phpunit:
service: appserver
cmd: '/app/bin/phpunit --testdox'
xdebug-on:
service: appserver
description: Enable Xdebug for Apache.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && docker-php-ext-enable xdebug && /etc/init.d/apache2 reload && echo "Xdebug enabled"
user: root
xdebug-off:
service: appserver
description: Disable Xdebug for Apache.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload && echo "Xdebug disabled"
user: root