Last active
May 6, 2020 02:06
-
-
Save mikemilano/a6e275b17d40794ba078bef9e51ccf2a to your computer and use it in GitHub Desktop.
Lando config for Symfony
This file contains hidden or 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
# 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