Skip to content

Commit cc47cda

Browse files
committed
Docker volume for Varnish cache file
1 parent 23c8684 commit cc47cda

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ secrets:
99
# file: ./secrets/google_client_id.txt
1010
#google_client_secret:
1111
# file: ./secrets/google_client_secret.txt
12+
volumes:
13+
varnish_frontend_cache:
1214
services:
1315
nginx:
1416
image: nginx:1.23.3
@@ -113,6 +115,8 @@ services:
113115
depends_on:
114116
- linkeddatahub
115117
tmpfs: /var/lib/varnish/varnishd:exec
118+
volumes:
119+
- varnish_frontend_cache:/var/lib/varnish
116120
entrypoint: varnishd
117121
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
118122
varnish-admin:

0 commit comments

Comments
 (0)