Varnish images based on debian packages
1.5K
Dockerfile linksVarnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.
This image is intended to use it directly inside a cluster orchestrator like Kubernetes.
default.vcl in your Varnish projectvcl 4.0;
backend default {
.host = "www.nytimes.com";
.port = "80";
}
Then make sure your cluster orchestration software makes it available on a volume in your container. Set the CONFIG_FILE environment variable to ensure varnish will pick it up.
You can override configuration through the following environment variables
VARNISH_PORT (default: 80)
VARNISH_DAEMON_OPTS (default: "")
VARNISH_MEMORY (default: 100m)
CONFIG_FILE (default: /etc/varnish/default.vcl)
ENABLE_LOGGING (default: "", set to "true" to enable logging)
LOGGING_OPTS (default: "")
For valid VARNISH_DAEMON_OPTS, see the varnish options documentation. For valid LOGGING_OPTS, see the varnishncsa documentation
This image is heavily inspired by newsdev/docker-varnish, but uses debian packages provided by varnish-cache.org.
View license information for the software contained in this image.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
Content type
Image
Digest
Size
101.2 MB
Last updated
over 9 years ago
docker pull panenka76/varnish