-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure prowlarr failing with vpn service #23
Comments
radarr:
container_name: radarr
image: lscr.io/linuxserver/radarr:4.7.5
networks:
- mynetwork
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
ports:
- 7878:7878
volumes:
- radarr-config:/config
- torrent-downloads:/downloads
restart: "unless-stopped"
prowlarr:
container_name: prowlarr
image: linuxserver/prowlarr:1.6.3
# Uncomment below if vpn is enabled
depends_on: # Uncomment this line if vpn is enabled
- vpn # Uncomment this line if vpn is enabled
network_mode: service:vpn # Uncomment this line if vpn is enabled
# networks: # Comment this line if vpn is enabled
# - mynetwork # Comment this line if vpn is enabled
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
volumes:
- prowlarr-config:/config
# Comment below ports if VPN is enabled.
# ports:
# - 9696:9696
restart: unless-stopped |
Let me check this on weekend |
@navilg thank for this repo ! i am trying it and i love it :) [Qinusty] -> i had the same problem behind my vpn, just go in your radarr container check it's ip, and use it in place of localhost docker-compose exec radarr bash to show ip of it ifconfig to exit from the container (do not stop the container) exit |
Thanks @lochot I am able to replicate the issue. |
This is because prowlarr and qBittorrent are behind VPN and when you hit http://radarr:7878 It is hitting from VPN server and not from docker network. So, It is not able to resolve it. Need to find out how to make it resolve local dns. |
Hey all, What if we create another internal network? We add an additional bridge network (let's call it internal-network). This network will be used for inter-container communication.
Here's how the Docker Compose file will look after these changes:
By adding the internal-network and connecting all services to it, you ensure that:
What do you think? |
Okay, please ignore anything I said in the last message. I made it work via the Nginx proxy. Please see my code in the forked repo. I have yet to do the documentation properly. The problem is that the connectivity needs to be improved, which makes Prowlarr inefficient. It barely syncs the Indexers. Sometimes, if it fails to sync and I force it a few times, it just goes into "cooldown" mode and does not let you manually force refresh until some time passes. In reality, I have only a few indices synced in Radarr and none in Sonarr even if the tests in the UI are successful. Any ideas on what we could do to make it more stable? |
Here's my working setup https://gist.github.com/MulverineX/00a56505908c63d679188ef984820c54 |
It should work when all services are behind VPN |
This is a well known gluetun's issue and its workaround is documented on glutun-wiki. Basically you should define static ip addresses for all services that are not part of the vpn stack ( I have written a simple working example for the services
name: test
services:
vpn:
image: docker.io/qmcgaw/gluetun:latest
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=surfshark
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_KEY}
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
- SERVER_COUNTRIES=Slovenia
networks:
- mynetwork
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 9696:9696
restart: "unless-stopped"
prowlarr:
container_name: prowlarr
image: lscr.io/linuxserver/prowlarr:latest
depends_on:
- vpn
network_mode: service:vpn
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
volumes:
- prowlar_config:/config
restart: unless-stopped
radarr:
container_name: radarr
image: lscr.io/linuxserver/radarr:latest
networks:
mynetwork:
ipv4_address: 172.18.0.22
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
ports:
- 7878:7878
volumes:
- radarr_config:/config
- torrent_volume:/downloads:z
restart: "unless-stopped"
volumes:
prowlar_config:
radarr_config:
torrent_volume:
networks:
mynetwork:
external: true
|
Added the feature to enable static IP for radarr and sonnar. Since prowlarr is accessing the radarr and sonarr through VPN network, It won't be able to access them with service name or localhost. |
Configure prowlarr docs networking seems incorrect given access to radarr over localhost:7878 is not accessable on the vpn service network. https://github.com/navilg/media-stack/tree/main#configure-prowlarr
I've tried various hostnames instead of localhost but looks like something is slightly misconfigured.
The text was updated successfully, but these errors were encountered: