mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2026-01-05 00:35:49 +00:00
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.
22 lines
402 B
YAML
22 lines
402 B
YAML
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
|