Update lancache

This commit is contained in:
2025-11-28 20:49:23 +01:00
parent 66d713c559
commit 67f0b2eb38

View File

@@ -1,16 +1,27 @@
version: "3.7" 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: services:
app_proxy: app_proxy:
environment: environment:
APP_HOST: app APP_HOST: app
APP_PORT: "80" APP_PORT: "80"
networks:
lancache_net:
ipv4_address: 172.25.0.10
app: app:
image: lancachenet/monolithic:latest image: lancachenet/monolithic:latest
environment: environment:
- USE_GENERIC_CACHE=true - USE_GENERIC_CACHE=true
- LANCACHE_IP=app - LANCACHE_IP=172.25.0.10
- DNS_BIND_IP=0.0.0.0 - DNS_BIND_IP=0.0.0.0
- UPSTREAM_DNS=8.8.8.8 - UPSTREAM_DNS=8.8.8.8
- CACHE_ROOT=./lancache - CACHE_ROOT=./lancache
@@ -22,12 +33,15 @@ services:
volumes: volumes:
- ${APP_DATA_DIR}/cache:/data/cache - ${APP_DATA_DIR}/cache:/data/cache
- ${APP_DATA_DIR}/logs:/data/logs - ${APP_DATA_DIR}/logs:/data/logs
networks:
lancache_net:
ipv4_address: 172.25.0.10
dns: dns:
image: lancachenet/lancache-dns:latest image: lancachenet/lancache-dns:latest
environment: environment:
- USE_GENERIC_CACHE=true - USE_GENERIC_CACHE=true
- LANCACHE_IP=app - LANCACHE_IP=172.25.0.10
- DNS_BIND_IP=0.0.0.0 - DNS_BIND_IP=0.0.0.0
- UPSTREAM_DNS=8.8.8.8 - UPSTREAM_DNS=8.8.8.8
- CACHE_ROOT=./lancache - CACHE_ROOT=./lancache
@@ -38,4 +52,7 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "53:53/udp" - "53:53/udp"
- "53:53/tcp" - "53:53/tcp"
networks:
lancache_net:
ipv4_address: 172.25.0.11