To spin up a container with Redis cache and use it as a default cache storage follow these steps:
- Uncomment lines with varnish service definition in the compose file.
- Download and install varnish module
- Add the following lines to the settings.php file:
$conf['varnish_version'] = 4; $conf['varnish_control_terminal'] = 'varnish:6082'; $conf['varnish_control_key'] = 'secret';
Blog post is coming.
See the list of environment variables available for customization at wodby/drupal-varnish.