about summary refs log tree commit diff
path: root/varnish/Dockerfile
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2015-11-19T21·23+0100
committerVincent Ambo <tazjin@gmail.com>2015-11-19T21·30+0100
commit850d8d79a7829ca6f4feed0b4e89f1e1e328d4a0 (patch)
treed98e86ebd4046ff47524331e4efb872d51710a5c /varnish/Dockerfile
parentdb1ae9930cec8cdf892967c9d7b9c63bf81550ec (diff)
[varnish] Add Varnish configuration and Dockerfile
Diffstat (limited to 'varnish/Dockerfile')
-rw-r--r--varnish/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/varnish/Dockerfile b/varnish/Dockerfile
new file mode 100644
index 000000000000..4a4b7dd7e08c
--- /dev/null
+++ b/varnish/Dockerfile
@@ -0,0 +1,11 @@
+FROM centos:7
+MAINTAINER Vincent Ambo <hej@tazj.in>
+
+EXPOSE 6081 6082
+
+RUN yum install -y epel-release && 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