-
Notifications
You must be signed in to change notification settings - Fork 2
/
.lando.yml
40 lines (37 loc) · 1.1 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
name: moose
recipe: wordpress
config:
php: '8.3'
database: mariadb:11.5
composer_version: 2-latest
via: nginx
xdebug: false
memcached: true
services:
appserver:
overrides:
environment:
- XDEBUG_TRIGGER=1
# Enabling MailHog will cause an error on start: `/bin/sh: 1: curl: not found`.
# Related GH Issue: https://github.com/lando/mailhog/issues/35
#
# The error doesn't actually cause any issues, but prevents lando from starting cleanly.
# If you need access to email from this site, enable the Mailhog service below.
# Otherwise, It's safe to keep this service disabled.
# mailhog:
# type: mailhog
# portforward: true
# hogfrom:
# - appserver_nginx
# - appserver
tooling:
xdebug-on:
service: appserver
description: Enable xdebug for nginx.
cmd: docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm && echo "Xdebug enabled"
user: root
xdebug-off:
service: appserver
description: Disable xdebug for nginx.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm && echo "Xdebug disabled"
user: root