Skip to content

Instantly share code, notes, and snippets.

@brandonkramer
Last active June 21, 2024 13:44
Show Gist options
  • Save brandonkramer/061f916d4d17d0ae9742b10b8daacf74 to your computer and use it in GitHub Desktop.
Save brandonkramer/061f916d4d17d0ae9742b10b8daacf74 to your computer and use it in GitHub Desktop.
Lando config file for WordPress with BrowserSync, MailHog, PHPMyAdmin, NGINX and XDebug
# Replace all {project} with project name
name: wp-{project}
recipe: wordpress
config:
php: '7.4'
via: nginx # Nginx or apache
webroot: .
database: mariadb # Mariadb or mysql
xdebug: true
config:
# https://github.com/lando/lando/blob/master/plugins/lando-services/services/php/php.ini
php: config/php.ini
# Config/httpd.conf for apache or config/nginx.conf for nginx
# https://github.com/lando/lando/blob/master/plugins/lando-services/services/nginx/nginx.conf.tpl
server: config/nginx.conf
services:
node:
type: node
globals:
gulp-cli: latest
mailhog:
type: mailhog
hogfrom:
- appserver
pma:
type: phpmyadmin
hosts:
- database
tooling:
npm:
service: node
node:
service: node
gulp:
service: node
yarn:
service: node
proxy:
# Appserver_nginx or appserver for apache
appserver_nginx:
- wp-{project}.lndo.site
mailhog:
- mail.wp-{project}.lndo.site
pma:
- pma.wp-{project}.lndo.site
# Add following options to your Browsersync script:
# "browserSyncOptions": {
# "proxy": "https://wp-{project}.lndo.site",
# "port": 80,
# "SSL": true,
# "open": false,
# "notify": false
# },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment