[varnish] Use Varnish 4.1, redirect to HTTPS

This commit is contained in:
Vincent Ambo 2015-11-21 19:49:36 +01:00
parent 9b403a625f
commit a3a2afdc59
2 changed files with 16 additions and 6 deletions

View file

@ -1,11 +1,14 @@
FROM centos:7
MAINTAINER Vincent Ambo <hej@tazj.in>
EXPOSE 6081 6082
EXPOSE 6081 6082 6083
RUN yum install -y epel-release && yum install -y varnish
RUN yum install -y epel-release && \
rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm && \
yum install -y varnish
ADD default.vcl /etc/varnish/default.vcl
CMD ulimit -n 131072 && \
/usr/sbin/varnishd -F -f /etc/varnish/default.vcl -a :6081 -T :6082 -t 120
/usr/sbin/varnishd -F -f /etc/varnish/default.vcl \
-a :6081 -T :6082 -a :6083,PROXY -t 120