@@ -113,10 +113,7 @@ services:
113113 depends_on :
114114 - linkeddatahub
115115 tmpfs : /var/lib/varnish/varnishd:exec
116- environment :
117- - VARNISH_HTTP_PORT=6060
118- - VARNISH_SIZE=1G
119- command : [ "-t", "86400" ] # time to live
116+ command : [ "-a", "http=:6060,HTTP", "-a", "proxy=:8443,PROXY", "-p", "feature=+http2", "-s", "file,/var/lib/varnish/storage.bin,3G", "-t", "86400" ] # HTTP and PROXY listeners, http2 support, 3GB disk storage, 86400s TTL
120117 varnish-admin :
121118 image : varnish:7.3.0
122119 user : root # otherwise the varnish user does not have permissions to the mounted folder which is owner by root
@@ -126,9 +123,7 @@ services:
126123 depends_on :
127124 - linkeddatahub
128125 tmpfs : /var/lib/varnish/varnishd:exec
129- environment :
130- - VARNISH_SIZE=1G
131- command : [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
126+ command : [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
132127 varnish-end-user :
133128 image : varnish:7.3.0
134129 user : root # otherwise varnish user does not have permissions to the mounted folder which is owner by root
@@ -138,9 +133,7 @@ services:
138133 depends_on :
139134 - linkeddatahub
140135 tmpfs : /var/lib/varnish/varnishd:exec
141- environment :
142- - VARNISH_SIZE=1G
143- command : [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
136+ command : [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
144137 email-server :
145138 image : namshi/smtp
146139 environment :
0 commit comments