Update lancache
This commit is contained in:
@@ -1,35 +1,59 @@
|
|||||||
|
# Configuration for lancache setup
|
||||||
|
# Name of the cpn-lancache application
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
# Service definitions for the cpn-lancache application
|
||||||
services:
|
services:
|
||||||
|
app_proxy:
|
||||||
|
environment:
|
||||||
|
APP_HOST: cpn-lancache_app_1
|
||||||
|
APP_PORT: "80"
|
||||||
|
# Service name: app
|
||||||
app:
|
app:
|
||||||
image: lancachenet/monolithic:latest
|
image: lancachenet/monolithic:latest # Docker image for the caching service
|
||||||
container_name: lancache_app
|
|
||||||
environment:
|
environment:
|
||||||
USE_GENERIC_CACHE: "true"
|
# Toggle for load balancer usage or separate IPs for each service
|
||||||
LANCACHE_IP: "192.168.178.70"
|
- USE_GENERIC_CACHE=true
|
||||||
CACHE_ROOT: "/data/cache"
|
# IPs for lancache monolithic instance; affects DNS resolution
|
||||||
CACHE_DISK_SIZE: "2000g"
|
- LANCACHE_IP=10.0.39.1
|
||||||
CACHE_INDEX_SIZE: "500m"
|
# Host IP for the DNS server binding
|
||||||
CACHE_MAX_AGE: "3650d"
|
- DNS_BIND_IP=10.0.39.1
|
||||||
TZ: "UTC"
|
# 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
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./lancache/cache:/data/cache
|
# Mount points for cache and logs
|
||||||
- ./lancache/logs:/data/logs
|
- ${APP_DATA_DIR}/cache:/data/cache
|
||||||
|
- ${APP_DATA_DIR}/logs:/data/logs
|
||||||
|
# DNS service configuration
|
||||||
dns:
|
dns:
|
||||||
image: lancachenet/lancache-dns:latest
|
image: lancachenet/lancache-dns:latest # Docker image for DNS service
|
||||||
container_name: lancache_dns
|
|
||||||
environment:
|
environment:
|
||||||
USE_GENERIC_CACHE: "true"
|
# Toggle for load balancer usage or separate IPs for each service
|
||||||
LANCACHE_IP: "192.168.178.70"
|
- USE_GENERIC_CACHE=true
|
||||||
DNS_BIND_IP: "0.0.0.0"
|
# IPs for lancache monolithic instance; affects DNS resolution
|
||||||
UPSTREAM_DNS: "8.8.8.8"
|
- LANCACHE_IP=10.0.39.1
|
||||||
TZ: "UTC"
|
# Host IP for the DNS server binding
|
||||||
|
- DNS_BIND_IP=10.0.39.1
|
||||||
|
# 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
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "53:53/udp"
|
|
||||||
- "53:53/tcp"
|
|
||||||
Reference in New Issue
Block a user