-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lando.example.yml
More file actions
52 lines (47 loc) · 942 Bytes
/
.lando.example.yml
File metadata and controls
52 lines (47 loc) · 942 Bytes
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
name: project-name
recipe: wordpress
config:
webroot: .
php: "8.2"
via: nginx # nginx / apache
database: mysql # mysql / mariadb
xdebug: true
composer: true
env_file:
- .env
# config:
# php: config/php.ini
services:
node:
type: node:22
pma:
type: phpmyadmin
hosts:
- database
mailhog:
type: mailhog
hogfrom:
- appserver
proxy:
mailhog:
- mail.project-name.lndo.site
pma:
- pma.project-name.lndo.site
tooling:
wp:
service: appserver
cmd: wp
npm:
service: node
cmd: npm
node:
service: node
cmd: node
composer:
service: appserver
cmd: composer
events:
pre-stop:
- echo "Backing up database..."
- lando wp db export - | gzip > db_backup.sql.gz
- echo "Database successfully backed up"