Update lancache
This commit is contained in:
@@ -1,58 +1,39 @@
|
|||||||
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:
|
||||||
|
image: lancachenet/monolithic:latest
|
||||||
environment:
|
environment:
|
||||||
APP_HOST: app
|
APP_HOST: app
|
||||||
APP_PORT: "80"
|
APP_PORT: "80"
|
||||||
networks:
|
restart: unless-stopped
|
||||||
lancache_net:
|
network_mode: "host"
|
||||||
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=172.25.0.10
|
LANCACHE_IP: 192.168.178.70
|
||||||
- DNS_BIND_IP=0.0.0.0
|
DNS_BIND_IP: 192.168.178.70
|
||||||
- UPSTREAM_DNS=8.8.8.8
|
UPSTREAM_DNS: 8.8.8.8
|
||||||
- CACHE_ROOT=./lancache
|
CACHE_ROOT: /data/cache
|
||||||
- CACHE_DISK_SIZE=2000g
|
CACHE_DISK_SIZE: 2000g
|
||||||
- CACHE_INDEX_SIZE=500m
|
CACHE_INDEX_SIZE: 500m
|
||||||
- CACHE_MAX_AGE=3650d
|
CACHE_MAX_AGE: 3650d
|
||||||
- TZ=UTC
|
TZ: UTC
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
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:
|
network_mode: "host"
|
||||||
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=172.25.0.10
|
LANCACHE_IP: 192.168.178.70
|
||||||
- DNS_BIND_IP=0.0.0.0
|
DNS_BIND_IP: 192.168.178.70
|
||||||
- UPSTREAM_DNS=8.8.8.8
|
UPSTREAM_DNS: 8.8.8.8
|
||||||
- CACHE_ROOT=./lancache
|
TZ: UTC
|
||||||
- CACHE_DISK_SIZE=2000g
|
|
||||||
- CACHE_INDEX_SIZE=500m
|
|
||||||
- CACHE_MAX_AGE=3650d
|
|
||||||
- TZ=UTC
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
network_mode: "host"
|
||||||
- "53:53/udp"
|
|
||||||
- "53:53/tcp"
|
|
||||||
networks:
|
|
||||||
lancache_net:
|
|
||||||
ipv4_address: 172.25.0.11
|
|
||||||
Reference in New Issue
Block a user