项目作者: theohbrothers

项目描述 :
Dockerized Varnish Agent, including the Enhanced Varnish Dashboard 🐳
高级语言: PowerShell
项目地址: git://github.com/theohbrothers/docker-varnish-agent.git
创建时间: 2019-02-12T23:18:29Z
项目社区:https://github.com/theohbrothers/docker-varnish-agent

开源协议:Apache License 2.0

下载


docker-varnish-agent

github-actions
github-release
docker-image-size

Dockerized Varnish Agent, including the Enhanced Varnish Dashboard.

Tags

Tag Dockerfile Build Context
:4.1.4-ubuntu-16.04, :latest View

Usage

An example docker-compose.yml is included demonstrating how to use this image with an separate Varnish image (e.g. varnish-alpine-docker).

Environment variables

Name Default value Description
VARNISH_HOST varnish Hostname of the varnish server
VARNISH_HOST_MANAGEMENT_PORT 6082 Management port opened by the varnish server
VARNISH_AGENT_USER admin The Varnish Agent user for basic authentication.
VARNISH_AGENT_PASSWORD admin The Varnish Agent password for basic authentication.
VARNISH_AGENT_PORT 6085 The Varnish Agent port.
DASHBOARD_ENABLED '' Whether you want to use the realtime Varnish Dashboard. If the value is empty, the dashboard is disabled.
DASHBOARD_VARNISH_SERVER_DISPLAY_NAME Varnish The display name of the varnish instance as seen in the Varnish Dashboard.

docker-entrypoint.sh

  • At entrypoint, if it does not exist, a Varnish Agent secret file is created in /usr/local/etc/varnish/agent_secret in the format $VARNISH_AGENT_USER:$VARNISH_AGENT_PASSWORD. By default, that will be admin:admin
  • Once the container has fully started up, the Varnish Agent / Varnish Dashboard frontend will be ready, and accessible via basic authentication.

FAQ

Q: Why is there no alpine image?

  • At the present moment, alpine is not yet supported by the Varnish Agent

Development

Requires Windows powershell or pwsh.

  1. # Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
  2. Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose
  3. # Edit ./generate templates
  4. # Generate the variants
  5. Generate-DockerImageVariants .