A Varnish docker container based on Alpine Linux.
Run with defaults:
docker run -it --name varnish sheogorath/varnish-alpine-docker
Specify your backend configuration:
docker run -e VARNISH_BACKEND_ADDRESS=app -e VARNISH_BACKEND_PORT=80 -e VARNISH_MEMORY=100M -it --name varnish sheogorath/varnish-alpine-docker
Build image locally:
git clone https://github.com/SISheogorath/varnish-alpine-docker.git
cd varnish-alpine-docker
docker build -t varnish-alpine-docker .
Variable | Default | Description |
---|---|---|
VARNISH_BACKEND_ADDRESS |
app |
Host/ip of your backend (Pleae notice multiple backends are not allowed) |
VARNISH_BACKEND_PORT |
80 | TCP port of your backend |
VARNISH_MEMORY |
100M | How much memory Varnish can use for caching |
This image is officially supported on Docker version 1.13.0.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
This Image was build from a modified version of thiagofigueiro/varnish-alpine-docker. Many thanks for your work!