Skip to content

Commit

Permalink
static ip for sonnar and raddar if vpn is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
navilg committed Oct 24, 2023
1 parent 146aba4 commit d044f5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d044f5d

Please sign in to comment.