Skip to content

Instantly share code, notes, and snippets.

@ricsiga
Last active April 6, 2018 12:04
Show Gist options
  • Save ricsiga/673e88e8a60c31c81dfc012fc034d16a to your computer and use it in GitHub Desktop.
Save ricsiga/673e88e8a60c31c81dfc012fc034d16a to your computer and use it in GitHub Desktop.
Varnish 3.0 with Docker on Debian Squeeze
FROM debian:squeeze
RUN echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian squeeze-lts main" >> /etc/apt/sources.list
RUN echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf
RUN apt-get update && apt-get install -y --force-yes procps vim nano tmux curl supervisor
RUN curl -s https://packagecloud.io/install/repositories/varnishcache/varnish30/script.deb.sh | bash
RUN apt-get update && apt-get install -y --force-yes varnish
ADD supervisor_varnish_docker.conf /etc/supervisor/conf.d/supervisor_varnish_docker.conf
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
[program:varnish]
command=/usr/sbin/varnishd -F -a :80 -T :6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,100M
user=root
autostart=true
stdout_events_enabled=true
stderr_events_enabled=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment