-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
105 lines (105 loc) · 2.59 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
98
99
100
101
102
103
104
105
name: lando-standard
recipe: drupal11
config:
webroot: webroot
php: '8.3'
composer_version: 2-latest
composer:
consolidation/robo: ^3
via: nginx
xdebug: false
#xdebug: 'debug,profile'
config:
php: lando-src/php.ini
services:
appserver:
overrides:
environment:
PHP_IDE_CONFIG: "serverName=appserver"
LANDO_HOST_IP: "host.docker.internal"
build:
- /usr/local/bin/composer global require --dev drupal/coder
- COMPOSER_PROCESS_TIMEOUT=1200 /usr/local/bin/composer install --working-dir=/app
build_as_root:
- apt-get update
- curl -sL https://deb.nodesource.com/setup_20.x | bash -
- apt-get install -y nodejs # clamav clamav-daemon
- npm install gulp-cli gulp -g
# - freshclam
# - update-rc.d clamav-daemon enable
redis:
type: redis
search:
type: solr:8.11
core: onr
config:
dir: lando-src/solr-primary
build_as_root:
- mkdir -p /opt/solr/server/solr/mycores/onr/conf
- chown -R solr:solr /opt/solr/server/solr/mycores
cypress:
type: node:custom
app_mount: false
overrides:
environment:
CYPRESS_DRUPAL_USER: admin
CYPRESS_DRUPAL_PASS: admin
DISPLAY: ":0"
image: 'cypress/included'
volumes:
- ./tests:/app/cypress
- /tmp/.X11-unix:/tmp/.X11-unix
mailhog:
type: mailhog
hogfrom:
- appserver
phpmyadmin:
type: phpmyadmin
hogfrom:
- appserver
# events:
# post-start:
# - lando-src/scripts/start-services.sh
# pre-stop:
# - lando-src/scripts/stop-services.sh
tooling:
robo:
service: appserver
description: Runs <robo> commmands
cmd: /var/www/.composer/vendor/bin/robo
npm:
service: appserver
node:
service: appserver
gulp:
service: appserver
xdebug-on:
service: appserver
description: Enable xdebug
cmd: "docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm"
user: root
xdebug-off:
service: appserver
description: Disable xdebug
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm"
user: root
phpstan:
service: appserver
description: Run PHPStan
cmd: "./vendor/bin/phpstan analyze --no-progress --memory-limit 1G -c phpstan.neon"
phpunit:
service: appserver
description: Run PHPUnit
cmd: "./vendor/bin/phpunit -c ./phpunit.xml"
env_file:
- .lando.env
- .secrets.env
excludes:
- vendor
proxy:
search:
- search.lando-standard.lndo.site:8983
phpmyadmin:
- phpmyadmin.lando-standard.lndo.site
mailhog:
- mailhog.lando-standard.lndo.site:8025