diff options
author | Vincent Ambo <tazjin@gmail.com> | 2015-11-21T18·49+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2015-11-21T18·49+0100 |
commit | a3a2afdc597eb00121191ca42f01a9e04555f684 (patch) | |
tree | a0ab9c1ab179f598e7b8a2a654d9e42aba4e5faf /varnish/Dockerfile | |
parent | 9b403a625f0f3cef650cb860725d8dec3a3b8919 (diff) |
[varnish] Use Varnish 4.1, redirect to HTTPS
Diffstat (limited to 'varnish/Dockerfile')
-rw-r--r-- | varnish/Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/varnish/Dockerfile b/varnish/Dockerfile index 4a4b7dd7e08c..54a8afe27879 100644 --- a/varnish/Dockerfile +++ b/varnish/Dockerfile @@ -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 |