From f7bd55f1dd81825c231bfb6be5e39f6c7555d3ef Mon Sep 17 00:00:00 2001 From: Flamur Veliqi Date: Fri, 28 Nov 2025 20:56:41 +0100 Subject: [PATCH] Update lancache --- cpn-lancache/docker-compose.yml | 44 +++++++++++++++------------------ 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/cpn-lancache/docker-compose.yml b/cpn-lancache/docker-compose.yml index 364dfe7..d686f82 100644 --- a/cpn-lancache/docker-compose.yml +++ b/cpn-lancache/docker-compose.yml @@ -1,39 +1,35 @@ version: "3.7" services: - app_proxy: - image: lancachenet/monolithic:latest - environment: - APP_HOST: app - APP_PORT: "80" - restart: unless-stopped - network_mode: "host" - app: image: lancachenet/monolithic:latest + container_name: lancache_app environment: USE_GENERIC_CACHE: "true" - LANCACHE_IP: 192.168.178.70 - DNS_BIND_IP: 192.168.178.70 - UPSTREAM_DNS: 8.8.8.8 - CACHE_ROOT: /data/cache - CACHE_DISK_SIZE: 2000g - CACHE_INDEX_SIZE: 500m - CACHE_MAX_AGE: 3650d - TZ: UTC + LANCACHE_IP: "192.168.178.70" + CACHE_ROOT: "/data/cache" + CACHE_DISK_SIZE: "2000g" + CACHE_INDEX_SIZE: "500m" + CACHE_MAX_AGE: "3650d" + TZ: "UTC" restart: unless-stopped + ports: + - "80:80" + - "443:443" volumes: - - ${APP_DATA_DIR}/cache:/data/cache - - ${APP_DATA_DIR}/logs:/data/logs - network_mode: "host" + - ./lancache/cache:/data/cache + - ./lancache/logs:/data/logs dns: image: lancachenet/lancache-dns:latest + container_name: lancache_dns environment: USE_GENERIC_CACHE: "true" - LANCACHE_IP: 192.168.178.70 - DNS_BIND_IP: 192.168.178.70 - UPSTREAM_DNS: 8.8.8.8 - TZ: UTC + LANCACHE_IP: "192.168.178.70" + DNS_BIND_IP: "0.0.0.0" + UPSTREAM_DNS: "8.8.8.8" + TZ: "UTC" restart: unless-stopped - network_mode: "host" \ No newline at end of file + ports: + - "53:53/udp" + - "53:53/tcp" \ No newline at end of file