Environment Variable | Default Value | Description |
---|---|---|
VARNISH_BACKEND_HOST | nginx | Mandatory |
VARNISH_BACKEND_PORT | 80 | |
VARNISH_MEMORY_SIZE | 100m | |
VARNISH_BACKEND_FIRST_BYTE_TIMEOUT | 300s | |
VARNISH_BACKEND_CONNECT_TIMEOUT | 5s | |
VARNISH_BACKEND_BETWEEN_BYTES_TIMEOUT | 2s | |
VARNISH_ERRORS_TTL | 10m | |
VARNISH_GRACE | 6h | |
VARNISH_SUBNET | 172.16.0.0/12 | |
VARNISH_SECRET_FILE | none | |
VARNISH_COOKIE_REGEXP | SESS[a-z0-9]+|SSESS[a-z0-9]+|NO_CACHE | |
VARNISH_RESPONSE_HEADER_LENGHT | 8192 |
- Default vcl is
/etc/varnish/default.vcl
- Secret is
none
, mount you secret to container and pointVARNISH_SECRET_FILE
to it
docker run -v $(pwd)/varnish.secret:/secret -e VARNISH_SECRET_FILE=/secret skilldlabs/varnish:5.1