diff --git a/cpn-lancache/docker-compose.yml b/cpn-lancache/docker-compose.yml index 04234f4..ccc1789 100644 --- a/cpn-lancache/docker-compose.yml +++ b/cpn-lancache/docker-compose.yml @@ -1,59 +1,41 @@ -# 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_HOST: app APP_PORT: "80" - # Service name: app + app: - image: lancachenet/monolithic:latest # Docker image for the caching service + image: lancachenet/monolithic:latest 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.79 - # Upstream DNS for forwarded lookups + - LANCACHE_IP=app + - DNS_BIND_IP=0.0.0.0 - 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: - image: lancachenet/lancache-dns:latest # Docker image for DNS service + image: lancachenet/lancache-dns:latest 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 + - LANCACHE_IP=app + - DNS_BIND_IP=0.0.0.0 - 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 + ports: + - "53:53/udp" + - "53:53/tcp" \ No newline at end of file