Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 668 Bytes

varnish.md

File metadata and controls

26 lines (18 loc) · 668 Bytes

Enabling Varnish support

Setup

  1. Comment out VIRTUAL_HOST=<project_name>.drude in the web service definition in docker-compose.yml.

  2. Add varnish service in docker-compose.yml

    Replace <project_name> with your project name.

    # Varnish node
    varnish:
      hostname: varnish
      image: blinkreaction/drupal-varnish:3.0-stable
      links:
        - web
      environment:
        - VARNISH_BACKEND_HOST=web.<project_name>.docker
        - VIRTUAL_HOST=<project_name>.drude
    
  3. Apply new configuration with dsh up

See https://github.com/blinkreaction/docker-drupal-varnish for additional configuration options.