Public | Automated Build

Last pushed: a year ago
Short Description
A minimal Varnish image build on Alpine linux
Full Description

Hence Varnish

Note: This image is still in BETA, and is subject to change without notice.

This is our minimal customized Varnish image based on alpine:3.2.

It uses the s6-overlay as a process supervisor and for log rotation.

Supported tags and respective Dockerfile links

Features

Builds on the hence/base image to provide a minimally-sized, fully functional varnish server.

This image includes some configuration presets for various applications:

  • drupal7: Search api preset for drupal 7 site
  • Others will be added in time

Use a preset by passing -e VARNISH_CONFIG_PRESET=[name] to docker run.

In addition to that, you can provide your own default.vcl by mounting it at $HENCE_APP_VOL_PREFIX/conf

Default supervised processes:

  • s6-svscan (as PID 1)
  • varnish
  • varnish-general-logs (log fifo)
  • varnish-error-logs (log fifo)

Available varnish environment variables [defaults]

VARNISH_PORT [80]
VARNISH_BACKEND_IP [172.17.42.1]
VARNISH_BACKEND_PORT [80]
VARNISH_STORAGE_AMOUNT [100m]
VARNISH_SESS_TIMEOUT [20]
VARNISH_CONSOLE_PORT [2000]
VARNISH_CONSOLE_SECRET [changeme]
VARNISH_CONFIG_PRESET [default]
VARNISH_FIRST_BYTE_TIMEOUT [60s]
VARNISH_PROBE_URL [/]
VARNISH_PROBE_TIMEOUT [2s]
VARNISH_PROBE_INTERVAL [5s]
VARNISH_PROBE_WINDOW [8]
VARNISH_PROBE_THRESHOLD [3]
VARNISH_RANCHER_HA [NULL]

Authors

License

MIT

Copyright

Copyright (c) 2015 Therefore Interactive

Docker Pull Command
Owner
hence
Source Repository

Comments (0)