This repository allows you to quickly install the varnish reverse proxy into a Ddev project using just ddev get drud/ddev-varnish
.
ddev get drud/ddev-varnish
ddev restart
The Varnish service inserts itself between ddev-router and the web container, so that calls
to the web container are routed through Varnish first. The docker-compose.varnish.yaml
replaces the VIRTUAL_HOST
variable of the web container with a subdomain of
the website URL (see below) and uses the default domain as its own host name.
- You may want to edit the
.ddev/varnish/default.vcl
to meet your needs.
Maintained by @rfay
Based on the original ddev-contrib recipe pioneered by rikwillems