Skip to content

Instantly share code, notes, and snippets.

@mikemilano
Last active May 6, 2020 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemilano/a6e275b17d40794ba078bef9e51ccf2a to your computer and use it in GitHub Desktop.
Save mikemilano/a6e275b17d40794ba078bef9e51ccf2a to your computer and use it in GitHub Desktop.
Lando config for Symfony
# Rename the `name` property and add this `.lando.yml` file to your project root.
#
# bin/console commands:
# lando console ...
#
# symfony commands:
# lando symfony ...
#
# Your .env file should include this:
# DATABASE_URL=mysql://root@database:3306/main
#
name: myproject
recipe: laravel
config:
webroot: public
via: nginx
services:
appserver:
build:
- "wget https://get.symfony.com/cli/installer -O - | bash"
- "mv /root/.symfony/bin/symfony /usr/local/bin/symfony"
database:
config: {}
type: mysql
portforward: true
creds:
user: main
password:
database: main
tooling:
console:
service: appserver
cmd: bin/console
phpunit:
service: appserver
cmd: bin/phpunit
make:
service: appserver
cmd: make
mysql:
service: ':host'
description: Drops into a MySQL shell on a database service
cmd: mysql -uroot main
options:
host:
description: The database service to use
default: database
alias:
- h
symfony:
service: appserver
cmd: symfony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment