From d044f5dba1e5eb7bd57cb4fe6579fffb0b626c17 Mon Sep 17 00:00:00 2001 From: Navratan Lal Gupta Date: Tue, 24 Oct 2023 16:39:51 +0530 Subject: [PATCH] static ip for sonnar and raddar if vpn is enabled --- README.md | 2 +- docker-compose.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e69cf6..f0a72b3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Update the `docker-compose.yml` file as guided in comment messsage in same file To deploy the stack with VPN (with nordvpn): ```bash -VPN_SERVICE_PROVIDER=nordvpn OPENVPN_USER=openvpn-username OPENVPN_PASSWORD=openvpn-password SERVER_COUNTRIES=Switzerland docker compose --profile vpn up -d +VPN_SERVICE_PROVIDER=nordvpn OPENVPN_USER=openvpn-username OPENVPN_PASSWORD=openvpn-password SERVER_COUNTRIES=Switzerland RADARR_STATIC_CONTAINER_IP=radarr-container-static-ip SONARR_STATIC_CONTAINER_IP=sonarr-container-static-ip docker compose --profile vpn up -d # docker compose -f docker-compose-nginx.yml up -d # OPTIONAL to use Nginx as reverse proxy ``` diff --git a/docker-compose.yml b/docker-compose.yml index 848ac98..d23be6a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,7 +89,10 @@ services: container_name: radarr image: lscr.io/linuxserver/radarr:5.0.3 networks: - - mynetwork + - mynetwork # Comment this line if VPN is enabled + ## Uncomment below lines if VPN is enabled + # mynetwork: + # ipv4_address: ${RADARR_STATIC_CONTAINER_IP} # It should be available IPv4 address in range of docker network `mynetwork` e.g. 172.20.0.2 environment: - PUID=1000 - PGID=1000 @@ -105,7 +108,10 @@ services: image: linuxserver/sonarr:4.0.0-develop container_name: sonarr networks: - - mynetwork + - mynetwork # Comment this line if VPN is enabled + ## Uncomment below lines if VPN is enabled + # mynetwork: + # ipv4_address: ${SONARR_STATIC_CONTAINER_IP} # It should be available IPv4 address in range of docker network `mynetwork` e.g. 172.20.0.2 environment: - PUID=1000 - PGID=1000