Varnish in a docker container
Go to file
dpedu 66d863906e Initial commit 2015-09-05 20:37:34 -07:00
Dockerfile Initial commit 2015-09-05 20:37:34 -07:00
README.md Initial commit 2015-09-05 20:37:34 -07:00
start Initial commit 2015-09-05 20:37:34 -07:00
supervisor.conf Initial commit 2015-09-05 20:37:34 -07:00
test.vcl Initial commit 2015-09-05 20:37:34 -07:00
varnish.conf Initial commit 2015-09-05 20:37:34 -07:00

README.md

docker-varnish

Container for running Varnish Cache. Automatically checks vcl validity before running varnish and reports compile errors in stdout.

Usage:

  • Build: docker build -t varnish .
  • Run: docker run -d -v /my/test.vcl:/etc/varnish/default.vcl -p 80:80 varnish

Advanced

  • Set memory size: docker run with -e MEMSIZE=128m
  • Use pre-set secret: -e SECRET=7d40f8f1-9107-4cce-a2b6-f5caf6fc7b9d
  • Expose control terminal: -p 1234:6082

Extras

  • test.vcl - example default.vcl file