-
Notifications
You must be signed in to change notification settings - Fork 9
/
.lando.yml
58 lines (58 loc) · 2.12 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
name: <machine_name>
recipe: acquia
config:
webroot: docroot
xdebug: false
php: '7.4'
services:
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."
- curl -sL https://deb.nodesource.com/setup_14.x | bash -
- apt install -y nodejs
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- apt install -y ./google-chrome-stable_current_amd64.deb
- rm google-chrome-stable_current_amd64.deb
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://<host_name>/"
SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock
cap_add:
- SYS_ADMIN
tooling:
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:
pre-start:
- appserver: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
post-start:
- appserver: test -e ~/.ssh/config || printf 'Host *\n AddKeysToAgent yes\n' > ~/.ssh/config