-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
49 lines (49 loc) · 1.32 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
name: wordpress # Name must be unique for each app!
recipe: wordpress
config:
php: "8.0"
via: apache # Or nginx.
database: mysql:5.7 # Or mariadb, etc.
xdebug: true
config:
php: config/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"
#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:
- wordpress.lndo.site
pma:
- phpmyadmin.lndo.site
mailhog:
- mailhog.lndo.site