Sign inSign up

ykocaman/varnish

By ykocaman

•Updated over 7 years ago

Alpine based Varnish

Image
0

2.4K

ykocaman/varnish repository overview

⁠Alpine Based Varnish Docker Image

Docker Stars Docker Pulls

Example usage:

docker run -it -p 8888:80 -v default.vcl:/etc/varnish/default.vcl ykocaman/varnish

OR

docker run -it -p 8888:80 -e VARNISH_BACKEND=localhost ykocaman/varnish

⁠Environment variables

  • VARNISH_BACKEND - Host of backend. If it is empty then use config file.
  • VARNISH_PORT - Port of backend. Defaults to 80.
  • VARNISH_STORAGE - storage config which Varnish can use for caching. Defaults to 200M memory. If you want file storage, use this:

VARNISH_STORAGE="file,/tmp/varnish_cache.bin,1G"

Tag summary

Content type

Image

Digest

Size

37.8 MB

Last updated

over 7 years ago

docker pull ykocaman/varnish