Skip to content

zazukoians/docker-varnish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Varnish Cache Docker image Build Status

This Docker image ships Varnish Cache, an HTTP accelerator designed for content-heavy dynamic web sites as well as heavily consumed APIs by Varnish Software. It is based on Baseimage-docker, which is a Docker optimized version of Ubuntu 16.04.

If you have any problems with this image please report issues on Github. Pull requests are also welcome.

The image includes varnish-modules.

Varnish environment variables

You can change its behavior by changing the following environment variables:

ENV VCL_CONFIG      /etc/varnish/default.vcl
ENV CACHE_SIZE      256m
ENV VARNISHD_PARAMS ""

Default parameters were taken from the The Varnish Tutorial. The default configuration file is shipped by Varnish Cache.

Basing your Varnish image on this project

We do not recommend using this image as-is.

Here is how you should use it instead:

FROM zazukoians/varnish:<choose a version>

COPY your-varnish-config-file.vcl /etc/varnish/default.vcl

SSL/TLS termination

Varnish does not support SSL/TLS termination. If you need this consider using something like traefik or hitch in front. For hitch, we provide a Docker image here.