/varnish-alpine-docker

A Varnish docker container based on Alpine Linux.

Primary LanguageShellApache License 2.0Apache-2.0

varnish-alpine-docker

Build Status Docker Stars Docker Pulls

A Varnish docker container based on Alpine Linux.

Environment variables

  • VARNISH_BACKEND_ADDRESS - host/ip of your backend. Defaults to 192.168.1.65.
  • 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 -ti --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 -ti --name=varnish-alpine thiagofigueiro/varnish-alpine-docker

Build image locally:

git clone git@github.com:thiagofigueiro/varnish-alpine-docker.git
cd varnish-alpine-docker
docker build -t varnish-alpine-docker .

Software

Acknowledgements