Skip to content

Commit

Permalink
Varnish config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 4, 2023
1 parent 026c4fb commit a016171
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ services:
- VARNISH_HTTP_PORT=6060
- BACKEND_HOST=linkeddatahub
- BACKEND_PORT=7070
- CLIENT_HOST=linkeddatahub
- CLIENT_HOST=nginx
- VARNISH_TTL=86400
- VARNISH_SIZE=1G
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint"
Expand All @@ -107,7 +107,7 @@ services:
image: varnish:7.3.0
user: root # otherwise the varnish user does not have permissions to the mounted folder which is owner by root
depends_on:
- linkeddatahub
- fuseki-admin
tmpfs: /var/lib/varnish/varnishd:exec
environment:
- BACKEND_HOST=fuseki-admin
Expand All @@ -122,7 +122,7 @@ services:
image: varnish:7.3.0
user: root # otherwise varnish user does not have permissions to the mounted folder which is owner by root
depends_on:
- linkeddatahub
- fuseki-end-user
tmpfs: /var/lib/varnish/varnishd:exec
environment:
- BACKEND_HOST=fuseki-end-user
Expand Down

0 comments on commit a016171

Please sign in to comment.