March 24, 2019

the cache stack

the dns container (run on a quicker, smaller computer)

version: "3"
services:

  steamcache-dns:
    restart: unless-stopped
    image: steamcache/steamcache-dns:latest
    environment:
      UPSTREAM_DNS: "10.2.1.10"
      USE_GENERIC_CACHE: "true"
      LANCACHE_IP: "10.2.1.11"
      BLIZZARDCACHE_IP: "10.2.1.12 10.2.1.13 10.2.1.14 10.2.1.15 10.2.1.16 10.2.1.17 10.2.1.18 10.2.1.19 10.2.1.20 10.2.1.21 10.2.1.22 10.2.1.23 10.2.1.24 10.2.1.25 10.2.1.26 10.2.1.27 10.2.1.28 10.2.1.29 10.2.1.30"
      STEAMCACHE_IP: "10.2.1.12 10.2.1.13 10.2.1.14 10.2.1.15"
      DISABLE_BLIZZARD: "false"
      DISABLE_STEAM: "false"
      DISABLE_UPLAY: "false"
      DISABLE_APPLE: "false"
      DISABLE_ORIGIN: "false"
      DISABLE_XBOXLIVE: "false"
      DISABLE_WSUS: "false"
      DISABLE_ARENANET: "false"
      DISABLE_DAYBREAK: "false"
      DISABLE_FRONTIER: "false"
      DISABLE_HIREZ: "false"
      DISABLE_NINTENDO: "false"
      DISABLE_RIOT: "false"
      DISABLE_ROCKSTAR: "false"
      DISABLE_SONY: "false"
      DISABLE_TWITCH: "false"
      TZ: "Australia/Sydney"
    volumes:
     - /cache/dnslogs:/var/log/named
    ports:
      - "10.2.1.79:53:53/udp"

  sniproxy:
    restart: unless-stopped
    image: steamcache/sniproxy:latest
    environment:
      TZ: "Australia/Sydney"
    volumes:
     - /cache/sniproxy/logs:/var/log/sniproxy/
    ports:
      - "443:443"

the cache container (run on a thicker, slower nas)

note:

version: "3"
services:

  monolithic-cache:
    restart: unless-stopped
    image:   steamcache/monolithic:latest
    container_name: monolithic-cache
    volumes:
        - /volume1/blender-share/Docker/monolithic_cache/data:/data/cache
        - /volume1/blender-share/Docker/monolithic_cache/logs:/data/logs
    environment:
      UPSTREAM_DNS: "10.2.1.10"
      CACHE_MEM_SIZE: "6000m" 
      TZ: "Australia/Sydney"
    ports:
      - "10.2.1.11:80:80"
      - "10.2.1.12:80:80"
      - "10.2.1.13:80:80"
      - "10.2.1.14:80:80"
      - "10.2.1.15:80:80"
      - "10.2.1.16:80:80"
      - "10.2.1.17:80:80"
      - "10.2.1.18:80:80"
      - "10.2.1.19:80:80"
      - "10.2.1.20:80:80"
      - "10.2.1.21:80:80"
      - "10.2.1.22:80:80"
      - "10.2.1.23:80:80"
      - "10.2.1.24:80:80"
      - "10.2.1.25:80:80"
      - "10.2.1.26:80:80"
      - "10.2.1.27:80:80"
      - "10.2.1.28:80:80"
      - "10.2.1.29:80:80"
      - "10.2.1.30:80:80"

  sniproxy:
    restart: unless-stopped
    image: steamcache/sniproxy:latest
    container_name: sniproxy
    environment:
      TZ: "Australia/Sydney"
    ports:
      - "443:443"

if the dns request is not handled by the cache, it's then sent through to the pihole and on to the internet