Sign inSign up

port3m5/varnish

By port3m5

Updated over 8 years ago

Varnish 5 built on top of debian:latest

Image
0

10K+

port3m5/varnish repository overview

Varnish

This container contains Varnish 5 on top of Debian.

Configuring Varnish

Create a new VCL file for your requirements, using the docker service name for your host. The following in an example configuration for a simple backend that is listening on port 8080 for a service called backend.

vcl 4.0;

backend default {
    .host = "backend";
    .port = "8080";
}

Environment Variables

Environment VariableDefault ValueDescription
VCL_CONFIG/etc/varnish/default.vclThe path to your VCL file
CACHE_SIZE64mThe amount of storage to use for your cache
VARNISHD_PARAMS-p default_ttl=3600 -p default_grace=3600The params to run varnishd with

Tag summary

Content type

Image

Digest

Size

105.2 MB

Last updated

over 8 years ago

docker pull port3m5/varnish