tutumcloud/varnish

Name: varnish

Owner: tutum (now Docker)

Description: Dockerized Varnish server image

Created: 2015-04-10 08:02:30.0

Updated: 2017-11-20 19:33:36.0

Pushed: 2015-07-08 20:45:32.0

Homepage: www.tutum.co

Size: 160

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

tutum-docker-varnish

Deploy to Tutum

Base image to run a Varnish server

Usage

If your content server is using port 80 and you want to run it with the default rules:

docker run -d --name backend tutum/hello-world
docker run -d --link backend -p 80:80 tutum/varnish

Go to http://localhost/ and you will get a superfast cached version of a hello world!

If your content server is using a port different than 80 (i.e. 8080) and you want to run it with the default rules:

docker run -d --link backend -e BACKEND_PORT=8080 -p 80:80 tutum/varnish

If you want to use your own custom VCL file:

docker run -d -e CONTENT="-f /etc/varnish/default.vcl" -v $PWD/default.vcl:/etc/varnish/default.vcl -p 80:80 tutum/varnish

If you want to use your own custom VCL file passing in its contents:

docker run -d -e CONTENT_VCL="`awk 1 ORS='\\n' file.vcl`" -p 80:80 tutum/varnish
Tags available

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.