Sign inSign up

cegeka/varnish

By cegeka

Updated about 9 years ago

Varnish images for PHP and Drupal applications.

Image
0

1.1K

cegeka/varnish repository overview

wkhtmltopdf-service

Volume

There is a volume which can be used to load a the VCL's: docker-vcl-initdb.d. The VCL's will be copied upon the creation of the container.

Environment variables

  • VARNISH_BACKEND_HOST: the backend host that Varnish should query
  • VARNISH_VARNISH_BACKEND_PORT_HOST: the backend port that Varnish should use to query the backend
  • VARNISH_PORT: the port on which Varnish should run
  • VARNISH_SECRET: the Varnish secret
  • VARNISH_VCL: the VCL that Varnish should use to start the server. This VCL should be present in your volume.

Example

varnish:
    image: cegeka/varnish
    volumes:
      - ./init/varnish:/docker-vcl-initdb.d
    environment:
      VARNISH_BACKEND_HOST: backend
      VARNISH_BACKEND_PORT: 80
      VARNISH_PORT: 80
      VARNISH_SECRET: secret
      VARNISH_VCL: local.vcl

Tag summary

Content type

Image

Digest

Size

124.7 MB

Last updated

about 9 years ago

docker pull cegeka/varnish