Skip to content

Commit 23c8684

Browse files
committed
Varnish entrypoint/command fixes
1 parent 1462f7c commit 23c8684

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ services:
113113
depends_on:
114114
- linkeddatahub
115115
tmpfs: /var/lib/varnish/varnishd:exec
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
116+
entrypoint: varnishd
117+
command: [ "-F", "-f", "/etc/varnish/default.vcl", "-a", "http=:6060,HTTP", "-a", "proxy=:8443,PROXY", "-p", "feature=+http2", "-s", "file,/var/lib/varnish/storage.bin,3G", "-t", "86400" ] # -F: foreground, -f: config, -a: listeners, -p: http2, -s: storage, -t: TTL
117118
varnish-admin:
118119
image: varnish:7.3.0
119120
user: root # otherwise the varnish user does not have permissions to the mounted folder which is owner by root
@@ -123,7 +124,8 @@ services:
123124
depends_on:
124125
- linkeddatahub
125126
tmpfs: /var/lib/varnish/varnishd:exec
126-
command: [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
127+
entrypoint: varnishd
128+
command: [ "-F", "-f", "/etc/varnish/default.vcl", "-a", "http=:80,HTTP", "-a", "proxy=:8443,PROXY", "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # -F: foreground, -f: config, -a: listeners, -p: http2 + idle timeout, -s: storage, -t: TTL
127129
varnish-end-user:
128130
image: varnish:7.3.0
129131
user: root # otherwise varnish user does not have permissions to the mounted folder which is owner by root
@@ -133,7 +135,8 @@ services:
133135
depends_on:
134136
- linkeddatahub
135137
tmpfs: /var/lib/varnish/varnishd:exec
136-
command: [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
138+
entrypoint: varnishd
139+
command: [ "-F", "-f", "/etc/varnish/default.vcl", "-a", "http=:80,HTTP", "-a", "proxy=:8443,PROXY", "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # -F: foreground, -f: config, -a: listeners, -p: http2 + idle timeout, -s: storage, -t: TTL
137140
email-server:
138141
image: namshi/smtp
139142
environment:

0 commit comments

Comments
 (0)