Sign inSign up

dockette/varnish

Sponsored OSS

By dockette

•Updated about 10 hours ago

🐳 Varnish cache

Image
Security
Web servers
Monitoring & observability
1

8.5K

dockette/varnish repository overview

⁠Dockette / Varnish

GitHub Actions Docker Hub pulls GitHub Sponsors Support/Discussions

Legacy Docker image for Varnish Cache with the bundled default.vcl and entrypoint used by older Dockette stacks.


⁠Usage

docker run --rm -it \
  -p 80:80 \
  --link app:app \
  dockette/varnish:latest

The bundled VCL expects the backend application to be reachable as app:80.

⁠Configuration

The image keeps the original legacy defaults:

  • VARNISH_SECRET=/etc/varnish/secret
  • VARNISH_CONFIG=/etc/varnish/default.vcl
  • VARNISH_CACHE=256m
  • VARNISH_PORT=80

Mount a custom VCL file when the default backend or caching rules do not fit your stack:

docker run --rm -it \
  -p 80:80 \
  -v "$(pwd)/default.vcl:/etc/varnish/default.vcl:ro" \
  dockette/varnish:latest

⁠Legacy Constraints

This repository intentionally preserves the historical image behavior. The entrypoint starts varnishd with the bundled VCL and then follows varnishlog; it does not provide a modern healthcheck, init wrapper, or generated runtime configuration.

The CI smoke test focuses on build viability, Varnish version output, entrypoint presence, bundled config presence, and VCL compilation.

⁠Development

make build
make test
make run

make run starts a temporary backend as app:80 for the bundled VCL.

⁠Maintenance

See how to contribute⁠ to this package. Consider to support⁠ f3l1x. Thank you for using this package.

Tag summary

Content type

Image

Digest

sha256:234c6870e…

Size

138.3 MB

Last updated

about 10 hours ago

docker pull dockette/varnish

This week's pulls

Pulls:

39

Oct 5 to Oct 11