-
Notifications
You must be signed in to change notification settings - Fork 4
/
.lando.yml
46 lines (46 loc) · 1.27 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
name: wpsandbox # Name must be unique for each app!
recipe: wordpress
config:
php: '8.2'
via: apache # Or nginx.
database: mysql:8.0 # Or mariadb, etc.
xdebug: true
config:
php: php.ini
services:
mailhog:
type: mailhog # Spin up a mailhog container called "mailhog".
hogfrom: # Hog from appserver or nginx as appropriate.
- appserver
pma:
type: phpmyadmin # Spin up a phpmyadmin container called "pma".
hosts:
- database
## Uncomment this section if needed for system/integration tests.
appserver:
overrides:
environment:
PHP_IDE_CONFIG: "serverName=appserver"
XDEBUG_SESSION_START: true
#run_as_root:
# # Install subversion for running WP system tests.
# - "apt-get update && apt-get install subversion -y"
#testdatabase:
# type: mysql
# creds:
# user: phpunit
# password: phpunit
# database: phpunit
tooling:
install:wordpress:
service: appserver
cmd:
- wp core download && wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress --dbhost=database
events:
pre-stop:
- echo "Backing up database..."
- wp db export --path=/app - | gzip > /app/db_backup.sql.gz
- echo "Database successfully backed up"
proxy:
appserver:
- wpsandbox.test