Configuration 
While Lando recipes set sane defaults so they work out of the box, they are also configurable.
Here are the configuration options, set to the default values, for this recipe's Landofile. If you are unsure about where this goes or what this means, we highly recommend scanning the recipes documentation to get a good handle on how the magicks work.
recipe: joomla
config:
  php: '7.2'
  composer_version: '2.0.7'
  via: apache:2.4
  webroot: .
  database: mysql:5.7
  xdebug: false
  config:
    database: SEE BELOW
    php: SEE BELOW
    server: SEE BELOW
    vhosts: SEE BELOWNote that if the above config options are not enough, all Lando recipes can be further extended and overriden.
Choosing a php version 
You can set php to any version that is available in our php service. However, you should consult the Joomla requirements to make sure that version is actually supported by Joomla itself.
The recipe config to set the Joomla recipe to use php version 7.1 is shown below:
recipe: joomla
config:
  php: '7.1'Choosing a composer version 
You can set composer_version to any version that is available in our php service.
recipe: joomla
config:
  composer_version: '1.10.1'Choosing a web server 
By default, this recipe will be served by the default version of our apache service but you can also switch this to use nginx. We highly recommend you check out both the apache and nginx services before you change the default via.
With Apache (default) 
recipe: joomla
config:
  via: apacheWith nginx 
recipe: joomla
config:
  via: nginxChoosing a database backend 
By default, this recipe will use the default version of our mysql service as the database backend but you can also switch this to use mariadb or 'postgres' instead. Note that you can also specify a version as long as it is a version available for use with lando for either mysql, mariadb or postgres.
If you are unsure about how to configure the database, we highly recommend you check out the mysql, mariadband 'postgres' services before you change the default.
Also note that like the configuration of the php version, you should consult the Joomla requirements to make sure the database and version you select is actually supported by Joomla itself.
Using MySQL (default) 
recipe: joomla
config:
  database: mysqlUsing MariaDB 
recipe: joomla
config:
  database: mariadbUsing Postgres 
recipe: joomla
config:
  database: postgresUsing a custom version 
recipe: joomla
config:
  database: postgres:9.6Connecting to your database 
Lando will automatically set up a database with a user and password and also set an environment variable called LANDO INFO that contains useful information about how your application can access other Lando services.
The default database connection information for a Joomla site is shown below:
Note that the host is not localhost but database.
database: joomla
username: joomla
password: joomla
host: database
# for mysql
port: 3306
# for postgres
# port: 5432You can get also get the above information, and more, by using the lando info command.
Using custom config files 
You may need to override our default Joomla config with your own.
If you do this, you must use files that exist inside your application and express them relative to your project root as shown below:
Note that the default files may change based on how you set both ssl and via. Also note that the vhosts and server config will be either for apache or nginx depending on how you set via. We highly recommend you check out both the apache and nginx if you plan to use a custom vhosts or server config.
A hypothetical project
Note that you can put your configuration files anywhere inside your application directory. We use a config directory but you can call it whatever you want such as .lando in the example below:
./
|-- config
   |-- default.conf
   |-- my-custom.cnf
   |-- php.ini
   |-- server.conf
|-- index.php
|-- .lando.ymlLandofile using custom joomla config
recipe: joomla
config:
  config:
    database: config/my-custom.cnf
    php: config/php.ini
    server: config/server.conf
    vhosts: config/default.conf