-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lando.yml
More file actions
71 lines (63 loc) · 1.79 KB
/
Copy path.lando.yml
File metadata and controls
71 lines (63 loc) · 1.79 KB
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
name: rv-starter-lando
recipe: wordpress
config:
php: 8.2
composer_version: 2
webroot: .
database: mysql:8.0
cache: memcached
ssl: false
via: nginx
xdebug: true
config:
php: .local/php.ini
database: .local/mysql.cnf
proxy:
appserver_nginx:
- rv-starter.local
services:
database:
portforward: 3307
mailhog:
type: mailhog
portforward: true
appserver:
build_as_root:
# Install required packages
- apt-get update -y
- apt-get install -y zlib1g-dev libzip-dev unzip curl
# Install memcache
- yes | pecl install memcache-8.0
- docker-php-ext-enable memcache
# Install Composer globally
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
memcached:
type: memcached:1.6.21
portforward: true
events:
pre-start:
- bash .local/bin/pre-start.sh
post-start:
- bash .local/bin/post-start.sh
tooling:
wp:
service: 'appserver'
import-db:
description: Imports .local/db-dumps/mysql.sql into the WordPress database.
service: appserver
cmd:
- if [ ! -e ".local/db-dumps/mysql.sql" ]; then echo "Database file (.local/db-dumps/mysql.sql) does not exist."; exit 1; fi
- wp db import .local/db-dumps/mysql.sql
- wp search-replace https://rv-starter.com http://rv-starter.local
- wp cache flush
- wp rewrite flush
xdebug-on:
service: appserver
description: Enable xdebug for nginx.
cmd: docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm && echo "Enabling xdebug"
user: root
xdebug-off:
service: appserver
description: CUSTOM Disable xdebug for nginx.
cmd: rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm && echo "Disabling xdebug"
user: root