Looking to include usenet #3

Closed
opened 2023-01-29 12:39:02 -03:00 by WinstonCh · 16 comments
WinstonCh commented 2023-01-29 12:39:02 -03:00 (Migrated from gitlab.com)

Hi!

First of all - great work! This was a super straight forward way setting up. Much appreciated.
Now looking to rather use Usenet instead of Torrent, but running into issues configuring NZBGet, as Sonarr cannot access the installation's download folders, due to the Dockerisation.

Do you have any pointers for me there?
Thanks!

Hi! First of all - great work! This was a super straight forward way setting up. Much appreciated. Now looking to rather use Usenet instead of Torrent, but running into issues configuring NZBGet, as Sonarr cannot access the installation's download folders, due to the Dockerisation. Do you have any pointers for me there? Thanks!
Karakazz commented 2023-01-30 18:06:32 -03:00 (Migrated from gitlab.com)

It's easy.
You just need to add in Sonarr, as well as Radarr the following under Settings -> Downloadclients -> Remote Path Mappings
image

Remote-Path is simply the location you installed for my case its /home/mediaserver/media/downloads/completed/Series

The localpath is the volume inside the docker-container and if you have followed the yam's guide it'd be /tv/

Change it to /Movies for Radarr.

This is what I added in the docker-compose for nzbget:

  nzbget:
    image: lscr.io/linuxserver/nzbget:latest
    container_name: nzbget
    environment:
      - PUID=YourPUID
      - PGID=YourPGID
      - TZ=Europe/Berlin
      - NZBGET_USER=Username #optional
      - NZBGET_PASS=CHANGEME!! #optional
    volumes:
      - /home/mediaserver/media/downloads:/downloads
      - /home/mediaserver/config/nzbget:/config
      - /home/mediaserver/media/tvshows:/tv
      - /home/mediaserver/media/movies:/movies
    ports:
      - 6789:6789
    restart: unless-stopped

You have to change the PUID and PGID as well as NZBGET_USER and NZBGET_PASS.
Also change the Volume's location as it won't match mine.

It's easy. You just need to add in Sonarr, as well as Radarr the following under Settings -> Downloadclients -> Remote Path Mappings ![image](/uploads/278286cbef8e97d393aae28604272020/image.png) Remote-Path is simply the location you installed for my case its /home/mediaserver/media/downloads/completed/Series The localpath is the volume inside the docker-container and if you have followed the yam's guide it'd be /tv/ Change it to /Movies for Radarr. This is what I added in the docker-compose for nzbget: ``` nzbget: image: lscr.io/linuxserver/nzbget:latest container_name: nzbget environment: - PUID=YourPUID - PGID=YourPGID - TZ=Europe/Berlin - NZBGET_USER=Username #optional - NZBGET_PASS=CHANGEME!! #optional volumes: - /home/mediaserver/media/downloads:/downloads - /home/mediaserver/config/nzbget:/config - /home/mediaserver/media/tvshows:/tv - /home/mediaserver/media/movies:/movies ports: - 6789:6789 restart: unless-stopped ``` You have to change the PUID and PGID as well as NZBGET_USER and NZBGET_PASS. Also change the Volume's location as it won't match mine.
rogs commented 2023-01-30 18:13:11 -03:00 (Migrated from gitlab.com)

You can bind the usenet downloads location to the docker image in the docker-compose.yaml file, and then reference it inside Sonarr 😄 No need to add a remote path, you should mount it in Sonarr to keep everything organized

You can bind the usenet downloads location to the docker image in the `docker-compose.yaml` file, and then reference it inside Sonarr :smile: No need to add a remote path, you should mount it in Sonarr to keep everything organized
rogs commented 2023-01-30 18:14:24 -03:00 (Migrated from gitlab.com)

Also, compatibility for Usenet is on the way! It's on the TODO list, in the README

Also, compatibility for Usenet is on the way! It's on the TODO list, in the README
rogs commented 2023-01-30 18:23:14 -03:00 (Migrated from gitlab.com)

@Karakazz, do you want to take the NZBGet task and create a PR to add it to YAMS? You basically did it on your last comment, it looks awesome haha

@Karakazz, do you want to take the NZBGet task and create a PR to add it to YAMS? You basically did it on your last comment, it looks awesome haha
WinstonCh commented 2023-02-23 14:31:31 -03:00 (Migrated from gitlab.com)

@rogs, that's great to hear. thanks for putting it on the agenda!

@rogs, that's great to hear. thanks for putting it on the agenda!
WinstonCh commented 2023-02-25 08:47:18 -03:00 (Migrated from gitlab.com)

I have now familiarised myself with Docker and included SABnzbd, which I prefer over NZBGet.

sabnzbd:

  image: lscr.io/linuxserver/sabnzbd:latest

  container_name: Sabnzbd

  environment:
    - PUID=1000
    - PGID=1000

  volumes:
    - /opt/yams/config/sabnzbd:/config
    - /mnt/yamsmedia/usenet:/data/usenet:rw

  ports:
    - 8181:8181

  restart: unless-stopped

Please note that I have my own mounting points for the container to allow for atomic moves.

I have now familiarised myself with Docker and included SABnzbd, which I prefer over NZBGet. ``` sabnzbd: image: lscr.io/linuxserver/sabnzbd:latest container_name: Sabnzbd environment: - PUID=1000 - PGID=1000 volumes: - /opt/yams/config/sabnzbd:/config - /mnt/yamsmedia/usenet:/data/usenet:rw ports: - 8181:8181 restart: unless-stopped ``` Please note that I have my own mounting points for the container to allow for atomic moves.
rogs commented 2023-02-25 19:53:58 -03:00 (Migrated from gitlab.com)

Cool! Do you want to create a PR to add this yo YAMS? 😸

Cool! Do you want to create a PR to add this yo YAMS? :smile_cat:
javentous commented 2023-08-31 13:39:43 -03:00 (Migrated from gitlab.com)

Hey, I've created a copy of my docker-compose.yaml in /srv/yams, would I replace that with the new docker-compose.yaml to get sabnzbd running? Then add it as a download client to Sonarr, Radarr, etc.?

I can try to create a PR if I figure it out. Server is currently running, after replacing I think I have to run yams restart or yams destroy, but I'm not sure.

Here are the contents of my new docker-compose with sabnzbd:

services:
  # jellyfin is used to serve your media to the client devices
  jellyfin:
    image: lscr.io/linuxserver/jellyfin
    container_name: jellyfin
    #network_mode: host # plex
    environment:
      - PUID=1000
      - PGID=1001
      - VERSION=docker
    volumes:
      - /srv/media/movies:/data/movies
      - /srv/media/tvshows:/data/tvshows
      - /opt/yams/config/jellyfin:/config
    ports:
      - 8096:8096
    restart: unless-stopped

  # qBitorrent is used to download torrents
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1001
      - WEB_UI_PORT=8080
    volumes:
      - /srv/media/downloads:/downloads
      - /opt/yams/config/qbittorrent:/config
    restart: unless-stopped
#    ports: # qbittorrent
#      - 8080:8080 # qbittorrent
    network_mode: "service:gluetun"

  # sabnzbd is a usenet download client
  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd
    container_name: sabnzbd
    enviornment:
      - PUID=1000
      - PUID=1001
    volumes:
      - /srv/media/downloads:/downloads
      - /opt/yams/config/sabnzbd:/config
    ports:
      - 8181:8181
    restart: unless-stopped

  # Sonarr is used to query, add downloads to the download queue and index TV shows
  # https://sonarr.tv/
  sonarr:
    image: lscr.io/linuxserver/sonarr
    container_name: sonarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /srv/media/tvshows:/tv
      - /srv/media/downloads:/downloads
      - /opt/yams/config/sonarr:/config
    ports:
      - 8989:8989
    restart: unless-stopped

  # Radarr is used to query, add downloads to the download queue and index Movies
  # https://radarr.video/
  radarr:
    image: lscr.io/linuxserver/radarr
    container_name: radarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /srv/media/movies:/movies
      - /srv/media/downloads:/downloads
      - /opt/yams/config/radarr:/config
    ports:
      - 7878:7878
    restart: unless-stopped

  # Lidarr is used to query, add downloads to the download queue and index Music
  # https://lidarr.audio/
  lidarr:
    image: lscr.io/linuxserver/lidarr
    container_name: lidarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /srv/media/music:/music
      - /srv/media/downloads:/downloads
      - /opt/yams/config/lidarr:/config
    ports:
      - 8686:8686
    restart: unless-stopped

  # Readarr is used to query, add downloads to the download queue and index Audio and Ebooks
  # https://readarr.com/
  readarr:
    image: lscr.io/linuxserver/readarr:develop
    container_name: readarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /srv/media/books:/books
      - /srv/media/downloads:/downloads
      - /opt/yams/config/readarr:/config
    ports:
      - 8787:8787
    restart: unless-stopped

  # Bazarr is used to download and categorize subtitles
  # https://www.bazarr.media/
  bazarr:
    image: lscr.io/linuxserver/bazarr
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /srv/media/movies:/movies
      - /srv/media/tvshows:/tv
      - /opt/yams/config/bazarr:/config
    ports:
      - 6767:6767
    restart: unless-stopped

  # Prowlarr is our torrent indexer/searcher. Sonarr/Radarr use Prowlarr as a source
  # https://prowlarr.com/
  prowlarr:
    image: lscr.io/linuxserver/prowlarr
    container_name: prowlarr
    environment:
      - PUID=1000
      - PGID=1001
    volumes:
      - /opt/yams/config/prowlarr:/config
    ports:
      - 9696:9696
    restart: unless-stopped

  # Gluetun is our VPN, so you can download torrents safely
  gluetun:
    image: qmcgaw/gluetun:v3.34.1
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8888:8888/tcp # HTTP proxy
      - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
      - 8080:8080/tcp # gluetun
    volumes:
      - /opt/yams/config/gluetun:/config
    environment:
      - VPN_SERVICE_PROVIDER=mullvad
      - VPN_TYPE=openvpn
      - OPENVPN_USER=hunter2
      - OPENVPN_PASSWORD=hunter2
      - SERVER_COUNTRIES=moonshaunted
      - OPENVPN_CIPHERS=AES-256-GCM
    restart: unless-stopped

  # Portainer helps debugging and monitors the containers
  portainer:
    image: portainer/portainer-ce
    container_name: portainer
    ports:
      - 9000:9000
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /opt/yams/config/portainer:/data
    restart: unless-stopped

  # Watchtower is going to keep our instances updated
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    environment:
      - WATCHTOWER_CLEANUP=true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped
Hey, I've created a copy of my docker-compose.yaml in /srv/yams, would I replace that with the new docker-compose.yaml to get sabnzbd running? Then add it as a download client to Sonarr, Radarr, etc.? I can try to create a PR if I figure it out. Server is currently running, after replacing I think I have to run yams restart or yams destroy, but I'm not sure. Here are the contents of my new docker-compose with sabnzbd: ``` services: # jellyfin is used to serve your media to the client devices jellyfin: image: lscr.io/linuxserver/jellyfin container_name: jellyfin #network_mode: host # plex environment: - PUID=1000 - PGID=1001 - VERSION=docker volumes: - /srv/media/movies:/data/movies - /srv/media/tvshows:/data/tvshows - /opt/yams/config/jellyfin:/config ports: - 8096:8096 restart: unless-stopped # qBitorrent is used to download torrents qbittorrent: image: lscr.io/linuxserver/qbittorrent container_name: qbittorrent environment: - PUID=1000 - PGID=1001 - WEB_UI_PORT=8080 volumes: - /srv/media/downloads:/downloads - /opt/yams/config/qbittorrent:/config restart: unless-stopped # ports: # qbittorrent # - 8080:8080 # qbittorrent network_mode: "service:gluetun" # sabnzbd is a usenet download client sabnzbd: image: lscr.io/linuxserver/sabnzbd container_name: sabnzbd enviornment: - PUID=1000 - PUID=1001 volumes: - /srv/media/downloads:/downloads - /opt/yams/config/sabnzbd:/config ports: - 8181:8181 restart: unless-stopped # Sonarr is used to query, add downloads to the download queue and index TV shows # https://sonarr.tv/ sonarr: image: lscr.io/linuxserver/sonarr container_name: sonarr environment: - PUID=1000 - PGID=1001 volumes: - /srv/media/tvshows:/tv - /srv/media/downloads:/downloads - /opt/yams/config/sonarr:/config ports: - 8989:8989 restart: unless-stopped # Radarr is used to query, add downloads to the download queue and index Movies # https://radarr.video/ radarr: image: lscr.io/linuxserver/radarr container_name: radarr environment: - PUID=1000 - PGID=1001 volumes: - /srv/media/movies:/movies - /srv/media/downloads:/downloads - /opt/yams/config/radarr:/config ports: - 7878:7878 restart: unless-stopped # Lidarr is used to query, add downloads to the download queue and index Music # https://lidarr.audio/ lidarr: image: lscr.io/linuxserver/lidarr container_name: lidarr environment: - PUID=1000 - PGID=1001 volumes: - /srv/media/music:/music - /srv/media/downloads:/downloads - /opt/yams/config/lidarr:/config ports: - 8686:8686 restart: unless-stopped # Readarr is used to query, add downloads to the download queue and index Audio and Ebooks # https://readarr.com/ readarr: image: lscr.io/linuxserver/readarr:develop container_name: readarr environment: - PUID=1000 - PGID=1001 volumes: - /srv/media/books:/books - /srv/media/downloads:/downloads - /opt/yams/config/readarr:/config ports: - 8787:8787 restart: unless-stopped # Bazarr is used to download and categorize subtitles # https://www.bazarr.media/ bazarr: image: lscr.io/linuxserver/bazarr container_name: bazarr environment: - PUID=1000 - PGID=1001 volumes: - /srv/media/movies:/movies - /srv/media/tvshows:/tv - /opt/yams/config/bazarr:/config ports: - 6767:6767 restart: unless-stopped # Prowlarr is our torrent indexer/searcher. Sonarr/Radarr use Prowlarr as a source # https://prowlarr.com/ prowlarr: image: lscr.io/linuxserver/prowlarr container_name: prowlarr environment: - PUID=1000 - PGID=1001 volumes: - /opt/yams/config/prowlarr:/config ports: - 9696:9696 restart: unless-stopped # Gluetun is our VPN, so you can download torrents safely gluetun: image: qmcgaw/gluetun:v3.34.1 container_name: gluetun cap_add: - NET_ADMIN devices: - /dev/net/tun:/dev/net/tun ports: - 8888:8888/tcp # HTTP proxy - 8388:8388/tcp # Shadowsocks - 8388:8388/udp # Shadowsocks - 8080:8080/tcp # gluetun volumes: - /opt/yams/config/gluetun:/config environment: - VPN_SERVICE_PROVIDER=mullvad - VPN_TYPE=openvpn - OPENVPN_USER=hunter2 - OPENVPN_PASSWORD=hunter2 - SERVER_COUNTRIES=moonshaunted - OPENVPN_CIPHERS=AES-256-GCM restart: unless-stopped # Portainer helps debugging and monitors the containers portainer: image: portainer/portainer-ce container_name: portainer ports: - 9000:9000 volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - /opt/yams/config/portainer:/data restart: unless-stopped # Watchtower is going to keep our instances updated watchtower: image: containrrr/watchtower container_name: watchtower environment: - WATCHTOWER_CLEANUP=true volumes: - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped ```
rogs commented 2023-08-31 13:47:29 -03:00 (Migrated from gitlab.com)

Yeah, that looks like it would work! If you can test it in your docker-compose and create a PR that would be great 😄 Thanks!

Yeah, that looks like it would work! If you can test it in your docker-compose and create a PR that would be great :smile: Thanks!
javentous commented 2023-11-13 00:01:56 -03:00 (Migrated from gitlab.com)

Sorry been a while. I had trouble with it, I think because of the port mapping? I ended up using a different docker-compose.yml in a sabnzbd directory in my home directory. Any idea what I could look into to make it work? I think it had something to do with qBitorrent using the same port. Let me try mapping it again and I'll get back to you.

Sorry been a while. I had trouble with it, I think because of the port mapping? I ended up using a different docker-compose.yml in a sabnzbd directory in my home directory. Any idea what I could look into to make it work? I think it had something to do with qBitorrent using the same port. Let me try mapping it again and I'll get back to you.
rogs commented 2023-11-13 14:17:24 -03:00 (Migrated from gitlab.com)

You need to point the internal sabnzbd port to the external port 8181. According to the docs, the port is 8080, so the correct configuration would be:

  # sabnzbd is a usenet download client
  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd
    container_name: sabnzbd
    enviornment:
      - PUID=1000
      - PUID=1001
    volumes:
      - /srv/media/downloads:/downloads
      - /opt/yams/config/sabnzbd:/config
    ports:
      - 8181:8080 # -------> Change this!
    restart: unless-stopped

Remember that port mapping in docker works the following way:

ports:
  - local_port:docker_port

So the config will forward the docker_port to any local_port you specify

You need to point the internal sabnzbd port to the external port 8181. According to [the docs](https://docs.linuxserver.io/images/docker-sabnzbd/#version-tags), the port is 8080, so the correct configuration would be: ```yaml # sabnzbd is a usenet download client sabnzbd: image: lscr.io/linuxserver/sabnzbd container_name: sabnzbd enviornment: - PUID=1000 - PUID=1001 volumes: - /srv/media/downloads:/downloads - /opt/yams/config/sabnzbd:/config ports: - 8181:8080 # -------> Change this! restart: unless-stopped ``` Remember that port mapping in docker works the following way: ```yaml ports: - local_port:docker_port ``` So the config will forward the docker_port to any local_port you specify
javentous commented 2023-11-14 06:12:39 -03:00 (Migrated from gitlab.com)

Thanks for the response, I should have been more clear. I modified and used the same port mapping you mentioned, it seems the issue is with sabnzbd image from linuxserver.io, here are two threads that specify the same issue:
https://discourse.linuxserver.io/t/any-way-to-change-internal-port-of-linuxserver-sabnzbd/7994
https://discourse.linuxserver.io/t/sabnzbd-hard-coded-to-use-port-8080/1810

Perhaps it is hardcoded? I can change the qBittorrent port, however I don't know about making a PR with a change in port.

Thanks for the response, I should have been more clear. I modified and used the same port mapping you mentioned, it seems the issue is with sabnzbd image from linuxserver.io, here are two threads that specify the same issue: https://discourse.linuxserver.io/t/any-way-to-change-internal-port-of-linuxserver-sabnzbd/7994 https://discourse.linuxserver.io/t/sabnzbd-hard-coded-to-use-port-8080/1810 Perhaps it is hardcoded? I can change the qBittorrent port, however I don't know about making a PR with a change in port.
javentous commented 2023-11-14 07:02:31 -03:00 (Migrated from gitlab.com)

Ok, if I run sabnzbd in a different docker-compose.yml and use the 8181:8080 mapping it works fine.

Ok, if I run sabnzbd in a different docker-compose.yml and use the 8181:8080 mapping it works fine.
rogs commented 2024-12-23 12:32:40 -03:00 (Migrated from gitlab.com)

Fixed on V3. Will close this issue when v3 is out.

Fixed on V3. Will close this issue when v3 is out.
rogs commented 2024-12-26 12:10:33 -03:00 (Migrated from gitlab.com)

mentioned in merge request !22

mentioned in merge request !22
rogs commented 2024-12-30 11:01:30 -03:00 (Migrated from gitlab.com)

mentioned in commit 76bbdc9537

mentioned in commit 76bbdc95375b1b1092ad39997984e63233902c47
rogs (Migrated from gitlab.com) closed this issue 2024-12-30 11:01:30 -03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rogs/yams#3
No description provided.