https://github.com/ventz/docker-varnish
Super Small (107MB) fully configured Varnish Cache Docker container - highly customized
https://github.com/ventz/docker-varnish
Last synced: over 1 year ago
JSON representation
Super Small (107MB) fully configured Varnish Cache Docker container - highly customized
- Host: GitHub
- URL: https://github.com/ventz/docker-varnish
- Owner: ventz
- Created: 2017-02-09T20:36:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T20:43:47.000Z (over 9 years ago)
- Last Synced: 2025-04-06T10:57:22.976Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Required "DATA" directory - with "default.vcl"
This container assumes you have a "/varnish" directory with a
"default.vcl" config file.
I have provided a very good ready to go "default.vcl" (in the
"container" folder), which only needs the IP/port changed (see:
"CHANGE ME" part inside)
# How to run Varnish Docker Container?
```
docker run --name=varnish \
--restart=always \
-d \
-p 80:80 \
-p 81:81 \
-v /varnish:/etc/varnish \
ventz/varnish
```
# Customizations - RAM, Ports, Cache period
* In the "Dockerfile", you may allocate more RAM (by default, I've provided 300MB)
* You may specify alternative ports (other than tcp/80, and tcp/81 for PROXY v2)
Don't forget to EXPOSE them too.
* You may change the "cache" period for when your backend is down/unavailable, via the "set.beresp.grace" field in the default.vcl.