Skip to content

Dockerized Varnish Agent, including the Enhanced Varnish Dashboard 🐳

License

Notifications You must be signed in to change notification settings

theohbrothers/docker-varnish-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose

# Edit ./generate templates

# Generate the variants
Generate-DockerImageVariants .