diff --git a/docker/Dockerfile-varnish7 b/docker/Dockerfile-varnish7 deleted file mode 100644 index d929d9d..0000000 --- a/docker/Dockerfile-varnish7 +++ /dev/null @@ -1,19 +0,0 @@ -FROM varnish:7.4 - -# set the user to root, and install build dependencies -USER root -RUN set -e; \ - apt-get update; \ - apt-get -y install $VMOD_DEPS /pkgs/*.deb; \ - \ -# install one, possibly multiple vmods - install-vmod https://github.com/varnish/varnish-modules/releases/download/0.23.0/varnish-modules-0.23.0.tar.gz; \ - \ -# clean up and set the user back to varnish - rm -rf /var/lib/apt/lists/* - -COPY vendor/ibexa/http-cache/docs/varnish/vcl/varnish7.vcl /etc/varnish/default.vcl -COPY doc/docker/entrypoint/varnish/parameters.vcl /etc/varnish/parameters.vcl -COPY doc/docker/entrypoint/varnish/entrypoint.sh /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/docker/varnish7.yml b/docker/varnish7.yml deleted file mode 100644 index 30c1585..0000000 --- a/docker/varnish7.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: '3.3' -# Simple single server setup for prod - -## WARNING! -# This service is currently work in progress, is not tested by CI, and thus not guaranteed to work. -# You are however more then welcome to try it out and help make it stable. - -services: - app: - environment: - - APP_HTTP_CACHE=0 - # Never do this in production if the app container is accesible for the public as well - # See https://ezplatform.com/security-advisories/ezsa-2020-002-unauthorised-cache-purge-with-misconfigured-fastly for more details how it could be abused - - TRUSTED_PROXIES=REMOTE_ADDR - - HTTPCACHE_PURGE_SERVER=http://varnish - - HTTPCACHE_PURGE_TYPE=varnish - - varnish: - build: - context: ../../ - dockerfile: doc/docker/Dockerfile-varnish7 - ports: - - "8081:80" - environment: - - VARNISH_MALLOC_SIZE=256m - depends_on: - - web - - app - networks: - - frontend - - backend -# command: ["--acl-add", "app", "--debug-acl-add", "app"] - stdin_open: true - tty: true - -## DEBUG?? -# In need of debugging all request going to Varnish, use varnishlog, example: -# docker-compose exec varnish varnishlog -c -i ReqURL,ReqMethod -I ReqHeader:xkey -# Or more relevant only PURGE's with all info: -# docker-compose exec varnish varnishlog -g request -q "ReqMethod eq 'PURGE'" -# -# But before doing that check that http and not local purge client is set: -# docker-compose exec app bin/console --env=dev debug:container ezplatform.http_cache.purge_client_internal -# -# And if in prod make sure you have rebuilt app container on code changes ;)