forked from Drupal4Gov/drupal4gov.us
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lando.yml
More file actions
57 lines (57 loc) · 1.67 KB
/
Copy path.lando.yml
File metadata and controls
57 lines (57 loc) · 1.67 KB
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
name: drupal4gov
recipe: acquia
config:
webroot: docroot
xdebug: false
php: '8.3'
services:
database:
type: 'mysql:8.0'
appserver:
xdebug: false
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:
DRUSH_OPTIONS_URI: "https://drupal4gov.lndo.site/"
SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock
cap_add:
- SYS_ADMIN
node:
type: node:22
globals:
gulp-cli: latest
npm: latest
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
node:
service: node
npm:
service: node
gulp:
service: node
events:
post-start:
- appserver: test -e ~/.ssh/config || printf 'Host *\n AddKeysToAgent yes\n' > ~/.ssh/config