Update lancache

This commit is contained in:
2025-11-28 20:54:09 +01:00
parent 67f0b2eb38
commit e3d7b7d054

View File

@@ -1,58 +1,39 @@
version: "3.7"
# Eigenes Netzwerk mit statischer IP für den Cache
networks:
lancache_net:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16
services:
app_proxy:
image: lancachenet/monolithic:latest
environment:
APP_HOST: app
APP_PORT: "80"
networks:
lancache_net:
ipv4_address: 172.25.0.10
restart: unless-stopped
network_mode: "host"
app:
image: lancachenet/monolithic:latest
environment:
- USE_GENERIC_CACHE=true
- LANCACHE_IP=172.25.0.10
- DNS_BIND_IP=0.0.0.0
- UPSTREAM_DNS=8.8.8.8
- CACHE_ROOT=./lancache
- CACHE_DISK_SIZE=2000g
- CACHE_INDEX_SIZE=500m
- CACHE_MAX_AGE=3650d
- TZ=UTC
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
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/cache:/data/cache
- ${APP_DATA_DIR}/logs:/data/logs
networks:
lancache_net:
ipv4_address: 172.25.0.10
network_mode: "host"
dns:
image: lancachenet/lancache-dns:latest
environment:
- USE_GENERIC_CACHE=true
- LANCACHE_IP=172.25.0.10
- DNS_BIND_IP=0.0.0.0
- UPSTREAM_DNS=8.8.8.8
- CACHE_ROOT=./lancache
- CACHE_DISK_SIZE=2000g
- CACHE_INDEX_SIZE=500m
- CACHE_MAX_AGE=3650d
- TZ=UTC
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
restart: unless-stopped
ports:
- "53:53/udp"
- "53:53/tcp"
networks:
lancache_net:
ipv4_address: 172.25.0.11
network_mode: "host"