66d863906e | ||
---|---|---|
Dockerfile | ||
README.md | ||
start | ||
supervisor.conf | ||
test.vcl | ||
varnish.conf |
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