docker-varnish/README.md

24 lines
906 B
Markdown
Raw Normal View History

2015-09-05 20:37:34 -07:00
docker-varnish
==============
Container for running [Varnish Cache](https://www.varnish-cache.org/). 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`
2015-09-05 22:45:57 -07:00
* Set custom syslog target remote host: `-e LOGHOST=10.0.40.28`
2015-09-05 20:37:34 -07:00
* Expose control terminal: `-p 1234:6082`
*Extras*
* test.vcl - example default.vcl file
2015-09-05 22:44:14 -07:00
* monitorvcl - example showing how reload varnish when the vcl is modified
* Apache-format logs are sent to the docker host with rsyslog with programname 'varnish', channel local6.notice
2015-09-07 15:31:22 -07:00
* Want to log to a file instead of syslog? In varnishlog.conf, change the @1.2.3.4 to a file path.