Add sabnzbd (#29)

* Added plex permissions and folder structure

* corrected typo

* Added sabnzbd support

* Fix folder creation for usenet

* Tweak for sabnzbd config path

* Changed download path

* Update docker-compose.yml

* Update docker-compose.yml

* Update README.md
This commit is contained in:
Vince van Daal
2023-05-24 12:26:48 +02:00
committed by GitHub
parent 297b3bfe98
commit 64b8b73c7a
6 changed files with 86 additions and 24 deletions

View File

@@ -14,6 +14,7 @@ class ContainerConfig:
self.book_dir = root_dir + '/media/books'
self.comic_dir = root_dir + '/media/comics'
self.torrent_dir = root_dir + '/data/torrents'
self.usenet_dir = root_dir + '/data/usenet'
def plex(self):
return (
@@ -22,7 +23,7 @@ class ContainerConfig:
' container_name: plex\n'
' network_mode: host\n'
' environment:\n'
' - PUID=${UID}\n'
' - PUID=13010\n'
' - PGID=13000\n'
' - VERSION=docker\n'
' - PLEX_CLAIM=' + self.plex_claim + '\n'
@@ -229,3 +230,21 @@ class ContainerConfig:
' - "5055:5055"\n'
' restart: unless-stopped\n\n'
)
def sabnzbd(self):
return (
' sabnzbd:\n'
' image: lscr.io/linuxserver/sabnzbd:latest\n'
' container_name: sabnzbd\n'
' environment:\n'
' - PUID=13011\n'
' - PGID=13000\n'
' - UMASK=002\n'
' - TZ=' + self.timezone + '\n'
' volumes:\n'
' - ' + self.config_dir + '/sabnzbd-config:/config\n'
' - ' + self.usenet_dir + ':/downloads\n'
' ports:\n'
' - "8081:8080"\n'
' restart: unless-stopped\n\n'
)