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.
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.
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
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.