Sign inSign up

panenka76/varnish

By panenka76

•Updated over 9 years ago

Varnish images based on debian packages

Image
0

1.5K

panenka76/varnish repository overview

⁠Varnish

⁠What is Varnish?

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

⁠How to use this image.

This image is intended to use it directly inside a cluster orchestrator like Kubernetes⁠.

⁠Create a default.vcl in your Varnish project
vcl 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.

⁠Customize configuration

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⁠

⁠Attribution

This image is heavily inspired by newsdev/docker-varnish⁠, but uses debian packages provided by varnish-cache.org⁠.

⁠License

View license information⁠ for the software contained in this image.

⁠Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue⁠.

Tag summary

Content type

Image

Digest

Size

101.2 MB

Last updated

over 9 years ago

docker pull panenka76/varnish