Skip to content

Instantly share code, notes, and snippets.

@jjpeleato

jjpeleato/.lando.yml

Created Feb 21, 2020
Embed
What would you like to do?
Apache 2.* + PHP 7.2 + Maria DB + Node JS + Mailhog + PhpMyAdmin
# See: https://lando.dev/
name: lamp
# See: https://docs.devwithlando.io/tutorials/lamp.html
recipe: lamp
config:
php: "7.2"
webroot: public
database: mariadb
xdebug: true
config:
php: private/config/php.ini
# See: https://docs.devwithlando.io/config/proxy.html
proxy:
appserver:
- web.nitropc.lndo.site
node:
- node.nitropc.lndo.site
database:
- db.nitropc.lndo.site
mailhog:
- mail.nitropc.lndo.site
pma:
- pma.nitropc.lndo.site
# See: https://docs.devwithlando.io/config/services.html
services:
appserver:
run_as_root:
- "chown www-data: -R /app"
node:
type: node
globals:
npm: "latest"
yarn: "latest"
gulp-cli: "latest"
database:
portforward: 3308
creds:
user: lamp
password: lamp
database: lamp
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: 1026
pma:
type: phpmyadmin
hosts: database
# See: https://docs.devwithlando.io/config/tooling.html
tooling:
node:
service: node
npm:
service: node
yarn:
service: node
gulp:
service: node
dep:
service: appserver
desription: run deployer commands
cmd:
- "vendor/bin/dep"
phpcs:
service: appserver
desription: "Analyze code against the WordPress coding standards with PHP_CodeSniffer"
cmd:
- "vendor/bin/phpcs"
phpcbf:
service: appserver
desription: "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
cmd:
- "vendor/bin/phpcbf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment