-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.dist.yml
90 lines (90 loc) · 2.49 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
name: ccw_lgd
recipe: drupal9
config:
xdebug: false
webroot: web
php: '8.1'
proxy:
mailhog:
- mail.localgov.lndo.site
adminer:
- adminer.localgov.lndo.site
solr-sitewide:
- 'solr-sitewide.localgov.lndo.site:8983'
services:
appserver:
overrides:
environment:
DRUSH_OPTIONS_ROOT: '/app/web'
DRUSH_OPTIONS_URI: 'https://localgov.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.lndo.site'
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"]
solr-sitewide:
type: solr:8
core: sitewide
config:
dir: .lando/solr/localgov_sitewide_solr
tooling:
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 -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: "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
update-solr-config:
service: appserver
cmd: /app/.lando/update-solr-config.sh