Varnish in a docker container
Go to file
dpedu f1c8ec1054 Update readme 2015-09-05 22:45:57 -07:00
Dockerfile Add syslog logging for varnish 2015-09-05 22:44:14 -07:00
README.md Update readme 2015-09-05 22:45:57 -07:00
monitorvcl Add syslog logging for varnish 2015-09-05 22:44:14 -07:00
rsyslogd.conf Add syslog logging for varnish 2015-09-05 22:44:14 -07:00
start Add syslog logging for varnish 2015-09-05 22:44:14 -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
varnishlog.conf Add syslog logging for varnish 2015-09-05 22:44:14 -07:00
varnishlogger.conf Add syslog logging for varnish 2015-09-05 22:44:14 -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
  • Set custom syslog target remote host: -e LOGHOST=10.0.40.28
  • Expose control terminal: -p 1234:6082

Extras

  • test.vcl - example default.vcl file
  • 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