Varnish

Web application accelerator/caching HTTP reverse proxy.

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: '3.9'
 
services:
  nginx:
    image: wodby/nginx
    environment:
      NGINX_BACKEND_HOST: php
      NGINX_VHOST_PRESET: php
    depends_on:
    - php
 
  php:
    image: wodby/php
 
  varnish:
    image: $IMAGE
    depends_on:
    - nginx
    environment:
      VARNISH_IMPORT_MODULES: cookie,header,digest
      VARNISH_BACKEND_HOST: nginx

Resources

Website: https://varnish-cache.org/

GitHub: https://github.com/varnishcache/varnish-cache

Docker Hub: https://hub.docker.com/r/wodby/varnish

Configuration: https://github.com/wodby/varnish