Skip to content

Commit

Permalink
Merge pull request #89 from ho-nl/feature/add-varnish-secret
Browse files Browse the repository at this point in the history
feat: add varnish secret
  • Loading branch information
hnsr authored Oct 25, 2021
2 parents ee7fff5 + 8a368f6 commit 05fcfd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ bin/magento config:set --lock-config system/full_page_cache/caching_application

- You can use `bin/magento cache:clean` or `cache:flush` to flush Varnish.
- You can use `CMD+SHIFT+R` to bypass Varnish for any page.
- You can use port 6082 and `docker-devbox-varnish-secret` as shared secret to connect with the Varnish management interface.

### How do I set up Redis?

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ services:
image: hermsi/alpine-varnish
volumes:
- ./vendor/reach-digital/docker-devbox/varnish/default.vcl:/etc/varnish/default.vcl:ro
- ./vendor/reach-digital/docker-devbox/varnish/secret:/etc/varnish/secret:ro
ports:
- 6081:6081
- 6082:6082
environment:
VARNISH_PORT: 80,PROXY
VARNISHD_ADDITIONAL_OPTS: -p feature=+http2 -a :6081
VARNISHD_ADDITIONAL_OPTS: -p feature=+http2 -a :6081 -T :6082 -S /etc/varnish/secret
#VARNISHLOG: 'true'
depends_on:
- nginx
Expand Down
1 change: 1 addition & 0 deletions varnish/secret
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-devbox-varnish-secret

0 comments on commit 05fcfd8

Please sign in to comment.