https://github.com/theohbrothers/docker-varnish-agent
Dockerized Varnish Agent, including the Enhanced Varnish Dashboard 🐳
https://github.com/theohbrothers/docker-varnish-agent
cache docker generate-dockerimagevariants http https varnish varnish-agent web
Last synced: 6 months ago
JSON representation
Dockerized Varnish Agent, including the Enhanced Varnish Dashboard 🐳
- Host: GitHub
- URL: https://github.com/theohbrothers/docker-varnish-agent
- Owner: theohbrothers
- License: apache-2.0
- Created: 2019-02-12T23:18:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T13:44:51.000Z (over 1 year ago)
- Last Synced: 2025-03-26T07:22:03.248Z (7 months ago)
- Topics: cache, docker, generate-dockerimagevariants, http, https, varnish, varnish-agent, web
- Language: PowerShell
- Homepage:
- Size: 103 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-varnish-agent
[](https://github.com/theohbrothers/docker-varnish-agent/actions/workflows/ci-master-pr.yml)
[](https://github.com/theohbrothers/docker-varnish-agent/releases/)
[](https://hub.docker.com/r/theohbrothers/docker-varnish-agent)Dockerized [Varnish Agent](https://github.com/varnish/vagent2), including the [Enhanced Varnish Dashboard](https://github.com/brandonwamboldt/varnish-dashboard).
## Tags
| Tag | Dockerfile Build Context |
|:-------:|:---------:|
| `:4.1.4-ubuntu-16.04`, `:latest` | [View](variants/4.1.4-ubuntu-16.04) |## Usage
An example `docker-compose.yml` is included demonstrating how to use this image with an separate Varnish image (e.g. [`varnish-alpine-docker`](https://github.com/thiagofigueiro/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`](https://github.com/brandonwamboldt/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](https://github.com/varnish/vagent2)
## Development
Requires Windows `powershell` or [`pwsh`](https://github.com/PowerShell/PowerShell).
```powershell
# 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 .
```