mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
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:
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user