2015-11-19 22:23:05 +01:00
|
|
|
FROM centos:7
|
|
|
|
MAINTAINER Vincent Ambo <hej@tazj.in>
|
|
|
|
|
2015-11-21 19:49:36 +01:00
|
|
|
EXPOSE 6081 6082 6083
|
2015-11-19 22:23:05 +01:00
|
|
|
|
2015-11-21 19:49:36 +01:00
|
|
|
RUN yum install -y epel-release && \
|
|
|
|
rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm && \
|
|
|
|
yum install -y varnish
|
2015-11-19 22:23:05 +01:00
|
|
|
|
|
|
|
ADD default.vcl /etc/varnish/default.vcl
|
|
|
|
|
|
|
|
CMD ulimit -n 131072 && \
|
2015-11-21 19:49:36 +01:00
|
|
|
/usr/sbin/varnishd -F -f /etc/varnish/default.vcl \
|
2015-11-24 14:07:20 +01:00
|
|
|
-a :6081 -T :6082 -a :6083,PROXY -t 120 \
|
|
|
|
-p thread_pool_min=5 -p thread_pool_max=500\
|
|
|
|
-p thread_pool_timeout=300
|