GithubHelp home page GithubHelp logo

docker-varnish-1's Introduction

Varnish Cache Docker image with latest stable version (4.1.x) Build Status

This Docker image ships Varnish Cache, a HTTP accelerator designed for content-heavy dynamic web sites as well as heavily consumed APIs by Varnish Software. It is based on Baseimage-docker, which is a Docker optimized version of Ubuntu LTS.

If you have any problems with this image please report issues on Github. Pull requests are also welcome.

Varnish is pulled from the offical Ubuntu LTS package repository by varnish-cache.org. This allows us to use the latest stable version 4.1.x of Varnish Cache.

Varnish environment variables

You can change its behaviour by changing the following environment variables:

ENV VCL_CONFIG      /etc/varnish/default.vcl
ENV CACHE_SIZE      256m
ENV VARNISHD_PARAMS ""

Default parameters were taken from the The Varnish Tutorial. The default configuration file is shipped by Varnish Cache.

Use the pre built image

The pre built image can be downloaded using Docker.

$ docker pull zazukoians/varnish

Build the docker image by yourself

You can also adjust and build the image according to your needs. Just clone the repository and then execute the build command.

$ docker build -t zazukoians/varnish .

Start the container

$ sudo docker run -i -d -p 80 zazukoians/varnish

Note that this alone won't be very useful as the default configuration points to a backend server on localhost port 8080. This will not work as there is no such server running in this image. Instead combine this image with an instance of an application container.

TODO add an example

Start the container and keep control

The command above starts the container and runs it in foreground. You can get a console in this image by executing

$ docker run -ti -p 443 - zazukoians/varnish /bin/bash

docker-varnish-1's People

Contributors

ktk avatar retog avatar

Watchers

James Cloos avatar Olav Grønås Gjerde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.