Sign inSign up

theohbrothers/docker-varnish-agent

By theohbrothers

•Updated over 2 years ago

Dockerized Varnish Agent, including the Enhanced Varnish Dashboard 🐳

Image
0

10K+

theohbrothers/docker-varnish-agent repository overview

⁠docker-varnish-agent

github-actions github-release docker-image-size

Dockerized Varnish Agent⁠, including the Enhanced Varnish Dashboard⁠.

⁠Tags

TagDockerfile Build Context
:4.1.4-ubuntu-16.04, :latestView⁠

⁠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

NameDefault valueDescription
VARNISH_HOSTvarnishHostname of the varnish server
VARNISH_HOST_MANAGEMENT_PORT6082Management port opened by the varnish server
VARNISH_AGENT_USERadminThe Varnish Agent user for basic authentication.
VARNISH_AGENT_PASSWORDadminThe Varnish Agent password for basic authentication.
VARNISH_AGENT_PORT6085The 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_NAMEVarnishThe 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?

⁠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 .

Tag summary

Content type

Image

Digest

sha256:30d131fab…

Size

52.8 MB

Last updated

over 2 years ago

docker pull theohbrothers/docker-varnish-agent