-
Notifications
You must be signed in to change notification settings - Fork 11
/
.lando.yml
97 lines (89 loc) · 2.63 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
92
93
94
95
96
97
name: orange
recipe: drupal9
config:
php: 7.3
via: nginx
webroot: web
# Change Composer version with caution.
# v2.x can be incompatible with certain Drupal dependencies.
composer_version: '1.10.1'
proxy:
mailhog:
- mail.orange.lndo.site
search:
- solr.orange.lndo.site:8983
services:
appserver:
build:
- composer install
search:
type: solr:8
core: orange
portforward: true
# Export the site solr config and commit to the project.
# Can be exported from: /admin/config/search/search-api/server/solr/solr_configset/config-zip
# Uncomment and set the path to the exported config below.
#config:
#dir: solr_conf
node:
type: node
build:
# Compile theme styles.
- cd /app/web/themes/contrib/orange_starter && npm install && gulp -- sass
globals:
gulp-cli: latest
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: true
selenium:
type: compose
services:
image: selenium/standalone-chrome:3.141.59-20200326
ports:
- "4444:4444"
volumes:
- /dev/shm:/dev/shm
command: /opt/bin/entry_point.sh
acro:
type: compose
services:
image: smmccabe/docker:php7.3
command: /opt/bin/entry_point.sh
overrides:
environment:
DRUPAL_TEST_BASE_URL: http://orange.lndo.site
DRUPAL_TEST_DB_URL: mysql://drupal8:drupal8@database/drupal8
# For use with the selenium image provided
# comment the 3 lines below out if using your local chrome
DRUPAL_TEST_WEBDRIVER_HOSTNAME: selenium
DRUPAL_TEST_WEBDRIVER_PORT: 4444
DRUPAL_TEST_WEBDRIVER_PATH_PREFIX: /wd/hub
# Uncomment the 2 below lines to use your local chrome install
#DRUPAL_TEST_WEBDRIVER_HOSTNAME: PUT YOUR LOCAL IP HERE, run lando ssh -c "env" | grep LANDO_HOST_IP
#DRUPAL_TEST_WEBDRIVER_PORT: 9515
DRUPAL_TEST_CHROMEDRIVER_AUTOSTART: 'false'
DRUPAL_NIGHTWATCH_OUTPUT: reports/nightwatch
DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES: node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest
tooling:
nightwatch:
service: acro
cmd: cd /app/web/core && yarn test:nightwatch
node:
service: node
npm:
service: node
gulp:
service: node
# Nginx - xdebug on/off toggling
xdebug-on:
service: appserver
description: Enable xdebug for nginx.
cmd: docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm
user: root
xdebug-off:
service: appserver
description: Disable xdebug for nginx.
cmd: rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm
user: root