Dockerized Varnish Agent, including the Enhanced Varnish Dashboard.
Tag | Dockerfile Build Context |
---|---|
:4.1.4-ubuntu-16.04 , :latest |
View |
An example docker-compose.yml
is included demonstrating how to use this image with an separate Varnish image (e.g. varnish-alpine-docker
).
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 . |
- 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 beadmin:admin
- Once the container has fully started up, the Varnish Agent / Varnish Dashboard frontend will be ready, and accessible via basic authentication.
Q: Why is there no alpine image?
- At the present moment, alpine is not yet supported by the Varnish Agent
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 .