special sponsors

Overriding a Service Version

Written by: Dustin LeBlanc Dustin LeBlanc
Guide Tested: No

The Docker images Lando uses for services are well optimized for local development, but occasionally you need to override those images with some of your own secret sauce. Lando makes this easy to do through the services overrides key:

name: projectofdoom
recipe: drupal8
config:
  via: nginx
  webroot: web
  php: 7.3
  database: mariadb
  xdebug: true
env_file:
  - .env
services:
  database:
    overrides:
      image: bitnami/mariadb:10.1.43

In the example above, we're overriding the image to use an explicit release of Bitnami's MariaDB container to bypass a breaking change released on Bitnami's 10.1 tag (Lando's default version).

You can also use this to load your own custom images:

name: projectofdoom
recipe: drupal8
config:
  via: nginx
  webroot: web
  php: 7.3
  database: mariadb
  xdebug: true
env_file:
  - .env
services:
  appserver:
    overrides:
      image: myamazingorg/fancyappserver:latest
Have a Lando question you'd like to see as a guide? Suggest one!
Want to write a Lando guide? Learn how!