proxy through varnish

sets up varnish cache server with:
- custom cache per content type
- gzip
- configure app & hass backends
- varnish debug headers & X-Cache verbose cache header

also updates docker-compose, varnish/Dockerfile & drone.
This commit is contained in:
2025-08-21 23:41:26 +02:00
parent 8c79806318
commit 7d1f536af5
8 changed files with 294 additions and 9 deletions

21
docker-compose.yml Normal file
View File

@@ -0,0 +1,21 @@
version: '3.8'
services:
app:
build: .
container_name: infra-map
ports:
- '3000:3000' # svelte-kit preview HTTP
varnish:
build: varnish
container_name: varnish-cache
ports:
- '6081:6081' # Varnish HTTP
environment:
- VARNISH_LISTEN_PORT=6081
command: >
varnishd
-F
-f /etc/varnish/default.vcl
-s malloc,256m
-a :6081