Skip to content

Instantly share code, notes, and snippets.

@khoipro
Created February 4, 2023 03:29
Show Gist options
  • Save khoipro/2305a5e1fc65d3e81d759f4f01ba71e9 to your computer and use it in GitHub Desktop.
Save khoipro/2305a5e1fc65d3e81d759f4f01ba71e9 to your computer and use it in GitHub Desktop.
Best practice with .lando config
# With php XDEBUG on or off
tooling:
xdebug-on: # run: lando xdebug-on
service: appserver
description: Enable xdebug for apache.
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload"
user: root
xdebug-off: # run: lando xdebug-off
service: appserver
description: Disable xdebug for apache.
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
user: root
# With php-unit
tooling:
phpunit: # run: lando phpunit
service: appserver
cmd: ./vendor/bin/phpunit
# Install phpmyamin
services:
phpmyadmin:
type: phpmyadmin
# Install db
services:
database:
type: mariadb
portforward: true
creds:
user: your_db
password: your_db
database: your_db
# Install nodejs
services:
node:
type: node:14
scanner: false
ports:
- 8080:8080
build:
- npm install
tooling:
dev: # run: lando dev
service: node
cmd: npm run start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment