Skip to content

Convenience launch service for Sabnzd, Nzbhydra2 and Sonarr in docker

Notifications You must be signed in to change notification settings

grumlimited/sabnzbd-docker

Repository files navigation

Sabnzbd-docker

sabnzbd-docker is a service unit that starts sabnzbd, nzbhydra2 and sonarr in their respective docker containers.

The services are provided as-is by linuxserver.io, direct from docker hub:

This package is Arch Linux centric, but it should work on any system that uses systemd and docker.

An Aur package is provided for easy installation.

Configuration

  1. Create a user config file at ~/.docker-sabnzbd.env with the following content:

    These directories represent the paths on the host where config files, logs, et al. for each service will go. They will be bound to the docker instances of each service.

    docker-compose.yaml has a few other directories and paths you can set for further customisation. You only need to set up corresponding the *_PREFIX paths for services you intend to use.

      SABNZBD_PATH_PREFIX   = /path/to/prefix
      NZBHYDRA2_PATH_PREFIX = /path/to/prefix
      SONARR_PATH_PREFIX    = /path/to/prefix
    
    For example, you can run it with something like:
      cat ~/.docker-sabnzbd.env
    
      TZ=Europe/Madrid
      COMPOSE_PROFILES=sabnzbd,nzbhydra2                    # does not start sonarr
      
      SABNZBD_PATH_PREFIX=/data/banjo/Downloads/sabnzbd     # config and logs
      SABNZBD_PATH_DOWNLOADS=/data/banjo/Downloads          # downloads will go one level up
      
      NZBHYDRA2_PATH_PREFIX=/data/banjo/Downloads/nzbhydra2 # config, logs and everything
    
  2. Create the following directories (for services you choose to run):

     # Sabnzbd
     mkdir -p /path/to/prefix/sabnzbd/config      # /config
     mkdir -p /path/to/prefix/sabnzbd/temp        # /incomplete-downloads
     mkdir -p /path/to/prefix/sabnzbd/downloads   # /downloads
    
     # NZBHydra2
     mkdir -p /path/to/prefix/nzbhydra2/config    # /config 
    
     # Sonarr
     mkdir -p /path/to/prefix/sonarr/config       # /config
     mkdir -p /path/to/prefix/sonarr/tv           # /tv
     mkdir -p /path/to/prefix/sonarr/downloads    # /downloads
    
  3. Optional. Defines the services to start, also in ~/.docker-sabnzbd.env:

     COMPOSE_PROFILES=sabnzbd,nzbhydra2,sonarr # default is 'all'
    
  4. Optional. Set the ports for the services in the same user config file:

     SABNZBD_PORT   = 8080
     NZBHYDRA2_PORT = 5076
     SONARR_PORT    = 8989
    

Installation

  makepkg      
  pacman -U sabnzbd-docker-x.y-z-x86_64.pkg.tar.zst

or get it from the Aur repository.

Usage

  # Optional. sabnzbd-docker-update.timer pull new updates from docker hub each day
  systemctl --user --now enable sabnzbd-docker-update.timer

  systemctl --user --now enable sabnzbd-docker

Navigate to http://localhost:8080 to access sabnzbd.

Configure sabnzbd, nzbhydra2 and sonarr to use the mapped directories defined in step 2.

About

Convenience launch service for Sabnzd, Nzbhydra2 and Sonarr in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages