Last active
May 3, 2024 10:28
-
-
Save spicecadet/d27a7dc847260fb5f3311fdc4ecbda7c to your computer and use it in GitHub Desktop.
Lando configuration for WordPress running on PHP 8.2/NGINX with MariaDB, Redis and Node. PHPMyAdmin and Mailhog are included and tooling supports WP-CLI and command line interaction through lando. To get this working copy the file your site directory and run: lando start. Run install-wp to install WordPress and then install WP as usual. For obje…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wp-nginx-redis | |
recipe: wordpress | |
config: | |
webroot: . | |
via: nginx | |
php: 8.2 | |
xdebug: true | |
database: mariadb | |
services: | |
pma: | |
type: phpmyadmin | |
hosts: | |
- database | |
mailhog: | |
type: mailhog | |
hogfrom: | |
- appserver | |
cache: | |
type: redis | |
portforward: 6379 | |
persist: true | |
theme: | |
type: node:20 | |
overrides: | |
ports: | |
- 5173:5173 # vite | |
- 3000:3000 # cra | |
tooling: | |
install-wp: | |
service: appserver | |
description: Downloads WP Core and creates a default WP config file. | |
cmd: | |
- wp core download && wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress --dbhost=database | |
redis-cli: | |
service: cache | |
node: | |
service: theme | |
npm: | |
service: theme | |
npx: | |
service: theme | |
proxy: | |
pma: | |
- pma.wp-nginx-redis.lndo.site | |
mailhog: | |
- mail.wp-nginx-redis.lndo.site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment