diff --git a/cpn-lancache/docker-compose.yml b/cpn-lancache/docker-compose.yml index ccc1789..5312ce2 100644 --- a/cpn-lancache/docker-compose.yml +++ b/cpn-lancache/docker-compose.yml @@ -1,16 +1,27 @@ 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: environment: APP_HOST: app APP_PORT: "80" + networks: + lancache_net: + ipv4_address: 172.25.0.10 app: image: lancachenet/monolithic:latest environment: - USE_GENERIC_CACHE=true - - LANCACHE_IP=app + - LANCACHE_IP=172.25.0.10 - DNS_BIND_IP=0.0.0.0 - UPSTREAM_DNS=8.8.8.8 - CACHE_ROOT=./lancache @@ -22,12 +33,15 @@ services: volumes: - ${APP_DATA_DIR}/cache:/data/cache - ${APP_DATA_DIR}/logs:/data/logs + networks: + lancache_net: + ipv4_address: 172.25.0.10 dns: image: lancachenet/lancache-dns:latest environment: - USE_GENERIC_CACHE=true - - LANCACHE_IP=app + - LANCACHE_IP=172.25.0.10 - DNS_BIND_IP=0.0.0.0 - UPSTREAM_DNS=8.8.8.8 - CACHE_ROOT=./lancache @@ -38,4 +52,7 @@ services: restart: unless-stopped ports: - "53:53/udp" - - "53:53/tcp" \ No newline at end of file + - "53:53/tcp" + networks: + lancache_net: + ipv4_address: 172.25.0.11 \ No newline at end of file