Skip to content

Instantly share code, notes, and snippets.

@ldynia
Created June 22, 2016 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldynia/5a9bbfb933e80b6771d21d76378aa15d to your computer and use it in GitHub Desktop.
Save ldynia/5a9bbfb933e80b6771d21d76378aa15d to your computer and use it in GitHub Desktop.
#!/bin/bash
# link: https://hub.docker.com/r/ldynia/varnish/
set -e
# Run varnish in foreground.
exec bash -c \
"exec varnishd -F -u varnish \
-a :$VCL_PORT \
-f $VCL_CONFIG \
-s malloc,$CACHE_SIZE \
$VARNISHD_PARAMS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment