Skip to content

Varnish

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents.

You can easily add it to your Lando app by adding an entry to the services top-level config in your Landofile.

yaml
services:
  myservice:
    type: varnish:6.0
    backend: appserver
    backend_port: 80

Supported versions

Legacy versions

Using Unsupported Varnish Versions!

While you can currently use some EOL Varnish versions with Lando, it's worth noting that we also do not support such versions, so your mileage may vary. If you are having issues with unsupported versions and open a ticket about it, the most likely response you will get is "upgrade to a supported version".

You can still run these versions with Lando but for all intents and purposes they should be considered deprecated (e.g. YMMV and do not expect a ton of support if you have an issue).

Patch versions

This service does not support patch versions but if you really need something like that, you could consider using either a custom compose service or a service overrides.