Public | Automated Build

Last pushed: 10 months ago
Short Description
Varnish Alpine Environment
Full Description


A very small Varnish docker image based on Alpine Linux.

Environment variables

  • VARNISH_BACKEND_ADDRESS - host/ip of your backend. Defaults to
  • VARNISH_BACKEND_PORT - TCP port of your backend. Defaults to 80.
  • VARNISH_MEMORY - how much memory Varnish can use for caching. Defaults to 100M.

Quick start

Run with defaults:

docker run -Pit --name=varnish-alpine thiagofigueiro/varnish-alpine-docker

Specify your backend configuration:

docker run -e VARNISH_BACKEND_ADDRESS=a.b.c.d \
           -e VARNISH_BACKEND_PORT=nn \
           -e VARNISH_MEMORY=1G \
           -Pit --name=varnish-alpine thiagofigueiro/varnish-alpine-docker

Build image locally:

git clone
cd varnish-alpine-docker
docker build -t varnish-alpine-docker .



The Docker image tag corresponds to the Alpine Linux version used. The Varnish
version used is whatever Alpine have packaged.

Image tag Alpine Version Varnish version
latest 3.5.0 4.1.3-r0
3.5 3.5.0 4.1.3-r0
3.4 3.4.6 4.1.2-r3
3.3 3.3.3 4.1.2-r1


Docker Pull Command
Source Repository