From 00b054c31c78fcd2d5d671c21c4490a253d1bd68 Mon Sep 17 00:00:00 2001 From: Flamur Veliqi Date: Fri, 28 Nov 2025 22:45:18 +0100 Subject: [PATCH] Update lancache --- cpn-lancache/docker-compose.yml | 49 +++++++++------------------------ 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/cpn-lancache/docker-compose.yml b/cpn-lancache/docker-compose.yml index ab9f400..e56a2f7 100644 --- a/cpn-lancache/docker-compose.yml +++ b/cpn-lancache/docker-compose.yml @@ -1,61 +1,38 @@ -# Configuration for lancache setup -# Name of the cpn-lancache application version: "3.7" -# Service definitions for the cpn-lancache application + services: app_proxy: environment: APP_HOST: cpn-lancache_app_1 APP_PORT: "80" - # Service name: app + app: + image: lancachenet/monolithic:latest network_mode: host - image: lancachenet/monolithic:latest # Docker image for the caching service environment: - # Toggle for load balancer usage or separate IPs for each service - USE_GENERIC_CACHE=true - # IPs for lancache monolithic instance; affects DNS resolution - LANCACHE_IP=192.168.178.70 - # Host IP for the DNS server binding - - DNS_BIND_IP=192.168.178.70 - # Upstream DNS for forwarded lookups - UPSTREAM_DNS=8.8.8.8 - # Local storage path for cache data - - CACHE_ROOT=./lancache - # Customizable disk cache size + - CACHE_ROOT=/data/cache - CACHE_DISK_SIZE=2000g - # Memory allocation for nginx cache indexing - CACHE_INDEX_SIZE=500m - # Maximum age for cached content - CACHE_MAX_AGE=3650d - # Container timezone setting for log timestamps - - TZ=UTC + - TZ=Europe/Berlin restart: unless-stopped volumes: - # Mount points for cache and logs - ${APP_DATA_DIR}/cache:/data/cache - ${APP_DATA_DIR}/logs:/data/logs - # DNS service configuration + ulimits: + nofile: + soft: 65536 + hard: 65536 + dns: + image: lancachenet/lancache-dns:latest network_mode: host - image: lancachenet/lancache-dns:latest # Docker image for DNS service environment: - # Toggle for load balancer usage or separate IPs for each service - USE_GENERIC_CACHE=true - # IPs for lancache monolithic instance; affects DNS resolution - LANCACHE_IP=192.168.178.70 - # Host IP for the DNS server binding - - DNS_BIND_IP=192.168.178.70 - # Upstream DNS for forwarded lookups - UPSTREAM_DNS=8.8.8.8 - # Local storage path for cache data - - CACHE_ROOT=./lancache - # Customizable disk cache size - - CACHE_DISK_SIZE=2000g - # Memory allocation for nginx cache indexing - - CACHE_INDEX_SIZE=500m - # Maximum age for cached content - - CACHE_MAX_AGE=3650d - # Container timezone setting for log timestamps - - TZ=UTC - restart: unless-stopped + - TZ=Europe/Berlin + restart: unless-stopped \ No newline at end of file