-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lando.dist.yml
81 lines (81 loc) · 2.43 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
name: localgov-azure
recipe: drupal10
config:
webroot: web
php: '8.3'
database: mysql:8.0
proxy:
mailhog:
- mail.localgov-azure.lndo.site
adminer:
- adminer.localgov-azure.lndo.site
services:
appserver:
scanner:
retry: 5
xdebug: true
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-azure.lndo.site'
SIMPLETEST_BASE_URL: 'http://localgov-azure.lndo.site'
SIMPLETEST_DB: 'mysql://database:database@database/database'
BROWSERTEST_OUTPUT_DIRECTORY: '/app/web/sites/simpletest/browser_output'
BROWSERTEST_OUTPUT_BASE_URL: 'http://localgov-azure.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
tooling:
composer:
service: appserver
cmd: /usr/local/bin/composer
sca:
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 -p'
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