static ip for sonnar and raddar if vpn is enabled

This commit is contained in:
Navratan Lal Gupta 2023-10-24 16:39:51 +05:30
parent 146aba4637
commit d044f5dba1
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View File

@ -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
```

View File

@ -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