{"id":660,"date":"2021-01-27T03:46:10","date_gmt":"2021-01-27T03:46:10","guid":{"rendered":"http:\/\/bullyrooks.com\/?p=660"},"modified":"2021-01-27T03:49:24","modified_gmt":"2021-01-27T03:49:24","slug":"install-the-sabnzbd-container","status":"publish","type":"post","link":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/install-the-sabnzbd-container\/","title":{"rendered":"Install the SABnzbd Container"},"content":{"rendered":"\n<p>We&#8217;re about to install our first docker component: SABnzbd.<\/p>\n\n\n\n<p>The SABnzbd docker build repository is located <a href=\"https:\/\/hub.docker.com\/r\/linuxserver\/sabnzbd\" data-type=\"URL\" data-id=\"https:\/\/hub.docker.com\/r\/linuxserver\/sabnzbd\">here<\/a>.  The first thing we&#8217;re going to do is create a docker compose file.  <a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/01\/24\/using-ssh-on-windows\/\" data-type=\"post\" data-id=\"576\">SSH <\/a>into your NAS and create a directory in your home directory called <code>media-server<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir media-server\ncd media-server<\/code><\/pre>\n\n\n\n<p>You&#8217;ll need to create a <code>docker-compose.yml<\/code> which we&#8217;ll be editing.  I prefer <code>vi<\/code> and this is <a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/01\/26\/installing-community-packages-on-synology\/\" data-type=\"post\" data-id=\"634\">available via the synocommunity packages<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"127\" src=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-54.png?resize=269%2C127&#038;ssl=1\" alt=\"\" class=\"wp-image-661\" data-recalc-dims=\"1\"\/><\/figure>\n\n\n\n<p>If you prefer to use <code>nano<\/code>, its included in a different package called <code>SynoCli File Tools<\/code>.  <code>Nano<\/code> is going to be a lot easier for beginners, so I&#8217;ll try to add directions to support the <code>nano <\/code>users.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"263\" height=\"125\" src=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-55.png?resize=263%2C125&#038;ssl=1\" alt=\"\" class=\"wp-image-662\" data-recalc-dims=\"1\"\/><\/figure>\n\n\n\n<p>You can install that and it will be available in your shell script without having to log out and back in.<\/p>\n\n\n\n<p>After its installed use vi to create the docker-compose.yml file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano docker-compose.yml<\/code><\/pre>\n\n\n\n<p>Now copy and paste in this text:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: \"2.1\"\nservices:\n  sabnzbd:\n    image: ghcr.io\/linuxserver\/sabnzbd\n    container_name: sabnzbd\n    environment:\n      - PUID=\"${PUID}\"\n      - PGID=\"${PGID}\"\n      - TZ=\"${TZ}\"\n    volumes:\n      - \/volume1\/docker\/sabnzbd:\/config\n      - \/volume1\/video\/sabnzbd\/complete:\/downloads\n      - \/volume1\/video\/sabnzbd\/incomplete:\/incomplete-downloads #optional\n    ports:\n      - 28080:8080\n      - 29090:9090\n    restart: unless-stopped\n<\/code><\/pre>\n\n\n\n<p>Make sure to replace my<code> \/volume1\/video\/sabnzbd\/...<\/code> directories with the ones that you chose if they are different.<\/p>\n\n\n\n<p>Now hit <code>ctrl-o<\/code>, <code>enter<\/code>, <code>ctrl-x<\/code> to write out  the file and exit.  We&#8217;re going to use environment variables (the<code> ${PUID}<\/code> line), because this is going to be common across all of our installations.  However, we need to define the value of the variable in a .env file.  Lets make one now:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano .env<\/code><\/pre>\n\n\n\n<p>Then paste in <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PUID=1036\nPGID=100\nTZ=America\/Denver<\/code><\/pre>\n\n\n\n<p>But use the correct UID and Group Id that you got from <a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/prepare-synology-for-media-components\/\" data-type=\"post\" data-id=\"643\">the last section<\/a>.  Then hit <code>ctrl-o<\/code>, <code>enter<\/code>, <code>ctrl-x<\/code> to write out the file and exit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Starting the Container<\/h2>\n\n\n\n<p>Type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo docker-compose up -d<\/code><\/pre>\n\n\n\n<p>and you should see output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Creating network \"media-server_default\" with the default driver\nPulling sabnzbd (ghcr.io\/linuxserver\/sabnzbd:)...\nlatest: Pulling from linuxserver\/sabnzbd\n07643fb7d827: Pull complete\n09029459c892: Pull complete\n1d5fe031cf42: Pull complete\n42288cdb1e93: Pull complete\n3cbb36e01e88: Pull complete\n7a3118d999d2: Pull complete\n1d8430d0cf8f: Pull complete\n736474874abd: Pull complete\nDigest: sha256:b2ca883c79a3958ba37f240ce2e175ae586f900027e3834b45166c40aafa352a\nStatus: Downloaded newer image for ghcr.io\/linuxserver\/sabnzbd:latest\nCreating sabnzbd ... done\n<\/code><\/pre>\n\n\n\n<p>Lets double check in portainer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/${your nas ip address}:9000\/<\/code><\/pre>\n\n\n\n<p>Navigate to <code>local Conainers<\/code> and you should see this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"36\" src=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-56.png?resize=960%2C36&#038;ssl=1\" alt=\"\" class=\"wp-image-663\" srcset=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-56.png?w=1015&amp;ssl=1 1015w, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-56.png?resize=300%2C11&amp;ssl=1 300w, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-56.png?resize=768%2C29&amp;ssl=1 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>and if you open a browser to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/${your nas ip address}:28080\/<\/code><\/pre>\n\n\n\n<p>You should see the SABnzbd configuration wizard<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"657\" src=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=960%2C657&#038;ssl=1\" alt=\"\" class=\"wp-image-664\" srcset=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?w=1006&amp;ssl=1 1006w, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=300%2C205&amp;ssl=1 300w, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=768%2C525&amp;ssl=1 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>Which we&#8217;ll setup in the next section.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"entry-summary\">\nWe&#8217;re about to install our first docker component: SABnzbd. The SABnzbd docker&hellip;\n<\/div>\n<div class=\"link-more\"><a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/install-the-sabnzbd-container\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &ldquo;Install the SABnzbd Container&rdquo;<\/span>&hellip;<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,18],"tags":[5,26,9,21],"course":[17],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-home-networking","category-media","tag-docker","tag-docker-compose","tag-portainer","tag-sabnzbd","course-media-server-appliations","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":630,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/26\/what-are-the-media-server-applications\/","url_meta":{"origin":660,"position":0},"title":"What are the Media Server Applications?","author":"Bullyrook","date":"January 26, 2021","format":false,"excerpt":"In order to retrieve content for your media server, you'll need to install a collection of applications. I'm going to focus on Sonarr (which is used to signal which shows or series you want to retrieve) and Radarr (which is used to signal which movies you want to retrieve). These\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":683,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/install-the-sonarr-container\/","url_meta":{"origin":660,"position":1},"title":"Install the Sonarr Container","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"Sonarr is a tool which will track all of the tv shows (series and documentaries) that you own as well as any content that you're missing from shows that you're interested in. It will use your sabnzbd and bittorrent sources to automatically download content that you're missing. Finally, it uses\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":643,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/prepare-synology-for-media-components\/","url_meta":{"origin":660,"position":2},"title":"Prepare Synology for Media Components","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"We'll need to do a little setup on Synology first in order to create the appropriate user account and directory structure. Create the Media Components User Account Get into the DSM on the NAS. Open Control Panel and select User Create a new user that docker will run your media\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-39.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":729,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/29\/create-a-radarr-container\/","url_meta":{"origin":660,"position":3},"title":"Create a Radarr Container","author":"Bullyrook","date":"January 29, 2021","format":false,"excerpt":"Radarr is almost exactly the same as Sonarr except its for movies instead. Installing a container and configuring the application is very similar to sonarr. Creating the Container The docker repository for radarr is here. The configuration documentation is here as well. Again, SSH into your NAS and edit the\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":670,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/configure-sabnzbd\/","url_meta":{"origin":660,"position":4},"title":"Configure SABnzbd","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"In the last section we got SABnzbd installed, now we need to configure it and make sure that we can successfully download a file via an NZB Configuring the Wizard We should be at the sabnzbd page via the port we configured (http:\/\/${your nas ip address}:28080) Select english and hit\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-58.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-58.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-58.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":733,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/30\/configuring-radarr\/","url_meta":{"origin":660,"position":5},"title":"Configuring Radarr","author":"Bullyrook","date":"January 30, 2021","format":false,"excerpt":"We're almost there! Lets configure Radarr quickly so that we can download movies. General Configuration Settings\/Media Management. Click Show Advanced. Check Rename Movies. Hit Save Changes. Configure Indexers This is almost exactly the same as sonarr. I'm just going to cover this with screenshots. Sabnzbd Bittorrent Configure Download Clients Click\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-92.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-92.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-92.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/comments?post=660"}],"version-history":[{"count":4,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/660\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/media?parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/categories?post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/tags?post=660"},{"taxonomy":"course","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/course?post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}