Maximize your network efficiency and provide a seamless gaming experience at LAN parties. By downloading game files just once, you can serve them directly to multiple users on your local network, drastically reducing internet bandwidth usage and download times.\n\nKey benefits include:\n* Bandwidth conservation: Download large game files a single time and distribute them locally.\n* Faster load times: Get gamers into the action quicker with high-speed local transfers.\n* All-in-one caching: Utilize a monolithic architecture designed specifically for caching game content efficiently.\n* Integrated DNS routing: Easily direct local traffic to the cache controller to ensure all game downloads are intercepted and served from the local server.\n\nWhether you are hosting a small gathering or a massive gaming event, this caching solution ensures your network remains stable and your attendees spend more time playing and less time waiting for updates.
services:
dns:
image: lancachenet/lancache-dns:latest
env_file: .env
ports:
- ${DNS_BIND_IP}:53:53/udp
- ${DNS_BIND_IP}:53:53/tcp
restart: unless-stopped
monolithic:
image: lancachenet/monolithic:latest
env_file: .env
ports:
- 80:80/tcp
volumes:
- ${CACHE_ROOT}/cache:/data/cache
- ${CACHE_ROOT}/logs:/data/logs
restart: unless-stopped
sniproxy:
image: lancachenet/sniproxy:latest
env_file: .env
ports:
- 443:443/tcp
restart: unless-stopped## LanCache Configuration
# [REQUIRED] The IP address of the host machine running this stack.
# This IP is returned by the DNS server to clients so they can find the cache.
LANCACHE_IP=192.168.1.50
# [REQUIRED] The IP address to bind the DNS service to.
# Usually the same as LANCACHE_IP. Helps avoid conflicts with systemd-resolved on 127.0.0.53.
DNS_BIND_IP=192.168.1.50
# Upstream DNS servers (semicolon separated)
UPSTREAM_DNS=1.1.1.1;1.0.0.1
# Storage path for cache data (relative to docker-compose.yml)
CACHE_ROOT=./data
# Maximum size of the cache (e.g. 500g, 1000g, 2t)
CACHE_DISK_SIZE=1000g
# Maximum age of cached data before expiry
CACHE_MAX_AGE=3650d
# Timezone for logs
TZ=UTCAuto-fetched about 23 hours ago
Auto-fetched about 23 hours ago