-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lando.yml
85 lines (85 loc) · 2.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: radicle
recipe: wordpress
env_file:
- .env.example
- .lando.env
excludes:
- vendor
- node_modules
config:
php: "8.1"
via: nginx
database: mariadb
cache: redis
xdebug: true
webroot: public
services:
appserver:
overrides:
# See: https://github.com/docker/for-linux/issues/264#issuecomment-763555307
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PHP_IDE_CONFIG: "${PHP_IDE_CONFIG:-serverName=appserver}"
XDEBUG_MODE: "${XDEBUG_MODE:-develop,debug}"
XDEBUG_CONFIG: "${XDEBUG_CONFIG:-client_host=host.docker.internal discover_client_host=true}"
build:
- composer install --working-dir=/app --no-progress --no-interaction --no-progress
build:
type: node:18
ssl: true
build:
- yarn install --immutable
- yarn build
scanner: false
sendmailhog:
type: mailhog
portforward: true
hogfrom:
- appserver
database:
type: mariadb
portforward: true
cache:
type: redis
portforward: true
tooling:
redis-cli:
service: cache
yarn:
service: build
ansible:
service: trellis
dir: /app/trellis
acorn:
service: appserver
cmd: wp acorn
flush:
service: appserver
description: Flush all caches
cmd:
- appserver: wp rewrite flush
- appserver: wp cache flush
- appserver: wp acorn optimize:clear
- cache: redis-cli FLUSHDB
dir: /app
reset-deps:
service: appserver
cmd:
- rm -rf /app/public/wp /app/vendor
- rm -rf /app/node_modules /app/public/dist/*
- appserver: composer install --working-dir=/app --no-progress --no-interaction --no-progress
- build: cd /app && yarn install --immutable && yarn build
login:
service: appserver
description: Generate administrator login URL
cmd: >-
if ! command wp package path aaemnnosttv/wp-cli-login-command >/dev/null 2>&1; then
mkdir -p ~/.wp-cli/packages;
cd ~/.wp-cli/packages;
composer config repositories.wp-cli --unset 2>/dev/null;
composer require aaemnnosttv/wp-cli-login-command dev-master;
cd /app;
fi;
wp plugin is-active wp-cli-login-server || wp login install --activate --yes;
wp login as 1