-
Notifications
You must be signed in to change notification settings - Fork 56
/
.lando.yml
64 lines (64 loc) · 2.17 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
name: drupalgovcon
recipe: acquia
config:
webroot: docroot
xdebug: false
php: '8.3'
acli_version: latest
ah_application_uuid: db2dea89-3758-ce04-edf6-e70c30252a87
ah_site_group: capitalcamp
services:
chromedriver:
type: compose
services:
image: isholgueras/chrome-headless:latest
# Lando always overrides the default entrypoint.
command: chromedriver --verbose --whitelisted-ips=
nodeservice:
type: node:20.5.0
build:
- cd docroot/themes/custom/twentynineteen && npm install && npm run build
appserver:
xdebug: false
config:
php: .lando/php.ini
build_as_root:
- apt-get update
- apt-get install libxss1
- echo "Run additional build commands here. Run lando rebuild after updating this file."
overrides:
# Pass SSH keys.
volumes:
- type: bind
# Linux user: add 'export LANDO_SSH_AUTH_SOCK="${SSH_AUTH_SOCK}"' at the end of your ~/.bashrc:
# Mac user: MacOS specific path is here as the variable default value, nothing to do.
source: "${LANDO_SSH_AUTH_SOCK:-/run/host-services/ssh-auth.sock}"
target: /run/host-services/ssh-auth.sock
environment:
PHP_IDE_CONFIG: "serverName=appserver"
DRUSH_OPTIONS_URI: "https://drupalgovcon.lndo.site/"
SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock
tooling:
npm:
service: nodeservice
blt:
service: appserver
cmd: /app/vendor/bin/blt
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
ssh-fix:
service: appserver
description: Fix ssh auth sock permission for MacOS users. Lando rebuild fixes the problem as well.
cmd: "/bin/chgrp www-data /run/host-services/ssh-auth.sock && /bin/chmod g+w /run/host-services/ssh-auth.sock"
user: root
events:
post-start:
- appserver: test -e ~/.ssh/config || printf 'Host *\n AddKeysToAgent yes\n' > ~/.ssh/config