Skip to content

Varnish docker image used within EMGAG environments

License

Notifications You must be signed in to change notification settings

OdenTech/docker-varnish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emgag/varnish

Build Status Docker Pulls

Docker varnish image used within EMGAG environments. Originally based on newsdev/docker-varnish (not available anymore), but updated to recent varnish versions (6.0 and 6.2), shipped with some additional vmods and better support for custom configuration.

Shipped VMODs:

Deprecated VMODs:

  • libvmod-geoip: GeoIP lookup support, up until 6.0.2, removed in >=6.0.2-1 because MaxMind no longer supports the legacy database format and the update mechanism in Debian contrib.

Supported tags and respective Dockerfile links

Notes:

  • Only 6.2 and 6.0 are versions supported by varnish and still maintained in this repo. For docs and code for versions 4.x and 5.x see branch 4.1.
  • Version 6.2 is untested and not used in production yet!

Deprecated/Unmaintained versions/tags

Retired tags:

  • latest: Removed because it's just too confusing with breaking changes. Latest version formerly tagged as latest was 6.0.2.
  • 6, 6.0: Points to 6.0.2 but will no longer be updated to not break backwards compatibility, since libvmod-geoip is removed in newer versions.
  • 6.1.x: Retired by varnish
  • 5, 5.x: Retired by varnish
  • 4, 4.x: Retired by varnish, as of 15th of March 2019

Varnish

From varnish-cache.org: Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.

How to use this image.

By default, varnish reads /etc/varnish/default.vcl on startup. Either copy your VCL file in your Dockerfile

FROM emgag/varnish:6.0.3-3
COPY default.vcl /etc/varnish/default.vcl

or mount a volume containing the varnish configuration to /etc/varnish, e.g with a docker-compose file:

version: '3'
services:
  varnish:
    image: emgag/varnish:6.0.3-3
    volumes:
      - ./varnish:/etc/varnish
    ports:
      - "80:80"

Following environment variables can be used to customize the behaviour of the container:

  • VARNISH_CONFIG (default: /etc/varnish/default.vcl): The VCL file read on startup.
  • VARNISH_DAEMON_OPTS: Additional command line arguments for varnishd.
  • VARNISH_LISTEN (default: :80): The TCP port to listen for incoming client connections. Make sure to also expose the new port if this value is modified.
  • VARNISH_MANAGEMENT_LISTEN (default: 127.0.0.1:6082): The TCP port to listen for management connections. See varnish documentation about management interface authentication to setup a PSK.
  • VARNISH_STORAGE (default: malloc,100m): The cache backend and its configuration

License

View license information for the software contained in this image.

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

About

Varnish docker image used within EMGAG environments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 88.2%
  • Shell 5.0%
  • VCL 4.0%
  • Makefile 2.8%