Create varnish

This commit is contained in:
Manevolent 2023-04-19 20:21:31 -06:00 committed by GitHub
commit 2706793fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
docker/services/varnish Normal file
View File

@ -0,0 +1,16 @@
network_mode: 'service:tinc'
image: varnish:7.3-alpine
command: "-p default_keep=300"
ports:
- "80:80/tcp"
- "443:443/tcp"
- "443:443/udp"
environment:
- VARNISH_SIZE=2G
tmpfs:
- /var/lib/varnish:exec
volumes:
- "./varnish/default.vcl:/etc/varnish/default.vcl"
depends_on:
- tinc
restart: always