docker-varnish/README.md

24 lines
599 B
Markdown
Raw Normal View History

2015-09-05 20:37:34 -07:00
docker-varnish
==============
2016-10-25 21:44:32 -07:00
Container for running [Varnish Cache](https://www.varnish-cache.org/).
2015-09-05 20:37:34 -07:00
*Usage:*
* Build: `docker build -t varnish .`
* Run: `docker run -d -v /my/test.vcl:/etc/varnish/default.vcl -p 80:80 varnish`
*Advanced*
2016-10-25 21:44:32 -07:00
* Set memory size - append: `-s malloc,256M`
* Set a secret - mount `-v /path/to/file/containg/uuid:/etc/varnish/secret`
2015-09-05 20:37:34 -07:00
* Expose control terminal: `-p 1234:6082`
*Extras*
* test.vcl - example default.vcl file
2016-10-25 21:44:32 -07:00
*Notes*
The default secret is `00000000-0000-0000-0000-000000000000`. This is INSECURE if you decide to expose the varnish control terminal.