Varnish in a docker container
Go to file
dave a3eb096e88 Delete the unncessary complication 2016-10-25 21:59:17 -07:00
Dockerfile Delete the unncessary complication 2016-10-25 21:59:17 -07:00
README.md Delete the unncessary complication 2016-10-25 21:59:17 -07:00
test.vcl Initial commit 2015-09-05 20:37:34 -07:00

README.md

docker-varnish

Container for running Varnish Cache.

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 - append: -s malloc,256M
  • Set a secret - mount -v /path/to/file/containg/uuid:/etc/varnish/secret
  • Expose control terminal: -p 1234:6082

Extras

  • test.vcl - example default.vcl file

Notes

The default secret is 00000000-0000-0000-0000-000000000000. This is INSECURE if you decide to expose the varnish control terminal.