Update lancache
This commit is contained in:
@@ -1,59 +1,41 @@
|
|||||||
# 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:
|
app_proxy:
|
||||||
environment:
|
environment:
|
||||||
APP_HOST: cpn-lancache_app_1
|
APP_HOST: app
|
||||||
APP_PORT: "80"
|
APP_PORT: "80"
|
||||||
# Service name: app
|
|
||||||
app:
|
app:
|
||||||
image: lancachenet/monolithic:latest # Docker image for the caching service
|
image: lancachenet/monolithic:latest
|
||||||
environment:
|
environment:
|
||||||
# Toggle for load balancer usage or separate IPs for each service
|
|
||||||
- USE_GENERIC_CACHE=true
|
- USE_GENERIC_CACHE=true
|
||||||
# IPs for lancache monolithic instance; affects DNS resolution
|
- LANCACHE_IP=app
|
||||||
- LANCACHE_IP=192.168.178.70
|
- DNS_BIND_IP=0.0.0.0
|
||||||
# Host IP for the DNS server binding
|
|
||||||
- DNS_BIND_IP=192.168.178.79
|
|
||||||
# Upstream DNS for forwarded lookups
|
|
||||||
- UPSTREAM_DNS=8.8.8.8
|
- UPSTREAM_DNS=8.8.8.8
|
||||||
# Local storage path for cache data
|
|
||||||
- CACHE_ROOT=./lancache
|
- CACHE_ROOT=./lancache
|
||||||
# Customizable disk cache size
|
|
||||||
- CACHE_DISK_SIZE=2000g
|
- CACHE_DISK_SIZE=2000g
|
||||||
# Memory allocation for nginx cache indexing
|
|
||||||
- CACHE_INDEX_SIZE=500m
|
- CACHE_INDEX_SIZE=500m
|
||||||
# Maximum age for cached content
|
|
||||||
- CACHE_MAX_AGE=3650d
|
- CACHE_MAX_AGE=3650d
|
||||||
# Container timezone setting for log timestamps
|
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
# Mount points for cache and logs
|
|
||||||
- ${APP_DATA_DIR}/cache:/data/cache
|
- ${APP_DATA_DIR}/cache:/data/cache
|
||||||
- ${APP_DATA_DIR}/logs:/data/logs
|
- ${APP_DATA_DIR}/logs:/data/logs
|
||||||
# DNS service configuration
|
|
||||||
dns:
|
dns:
|
||||||
image: lancachenet/lancache-dns:latest # Docker image for DNS service
|
image: lancachenet/lancache-dns:latest
|
||||||
environment:
|
environment:
|
||||||
# Toggle for load balancer usage or separate IPs for each service
|
|
||||||
- USE_GENERIC_CACHE=true
|
- USE_GENERIC_CACHE=true
|
||||||
# IPs for lancache monolithic instance; affects DNS resolution
|
- LANCACHE_IP=app
|
||||||
- LANCACHE_IP=192.168.178.70
|
- DNS_BIND_IP=0.0.0.0
|
||||||
# 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
|
- UPSTREAM_DNS=8.8.8.8
|
||||||
# Local storage path for cache data
|
|
||||||
- CACHE_ROOT=./lancache
|
- CACHE_ROOT=./lancache
|
||||||
# Customizable disk cache size
|
|
||||||
- CACHE_DISK_SIZE=2000g
|
- CACHE_DISK_SIZE=2000g
|
||||||
# Memory allocation for nginx cache indexing
|
|
||||||
- CACHE_INDEX_SIZE=500m
|
- CACHE_INDEX_SIZE=500m
|
||||||
# Maximum age for cached content
|
|
||||||
- CACHE_MAX_AGE=3650d
|
- CACHE_MAX_AGE=3650d
|
||||||
# Container timezone setting for log timestamps
|
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "53:53/udp"
|
||||||
|
- "53:53/tcp"
|
||||||
Reference in New Issue
Block a user