62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
# 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:
|
|
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_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
|
|
volumes:
|
|
# Mount points for cache and logs
|
|
- ${APP_DATA_DIR}/cache:/data/cache
|
|
- ${APP_DATA_DIR}/logs:/data/logs
|
|
# DNS service configuration
|
|
dns:
|
|
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
|