Sonarr Setup
TV Management.
See Sonarr Docker and Documentation.
Ports
Sonarr Ports
Port
Protocol
Type
Purpose
8989
TCP
EXPOSED
Webface
Updated: None
Files
Sonarr Files
Location
Purpose
/config
Sonarr main service directory
/downloads
Sonarr monitored downloads directory
Updated: None
Docker Creation
You can copy your existing configuration to docker /config
directory
adjusting for paths.
The UID/GID should be set to a user/group that has access to your media. All media clients should run under the same user to run correctly.
Your downloader will report the download path mapped in the downloader docker/service. You need to map this exact path in Sonarr for it to be able to post-process downloads properly.
See Basic Configuration for example configuration.
sonarr:
image: linuxserver/sonarr:latest
restart: unless-stopped
depends_on:
- nzbget
environment:
- PGID=1001
- PUID=1001
- TZ=America/Los_Angeles
volumes:
- /data/downloads:/data/downloads
- /data/media/tv:/data/media/tv
- /data/services/sonarr:/config
- /etc/localtime:/etc/localtime:ro
Proxy will forward traffic to the container, so no ports need to be exposed.
Reverse Proxy Setup
Allows you to isolate your containers as well as wrap connections in SSL. See NGINX for more details. See Setup Base Proxy Control for basic proxy configuration.
See Sonarr reverse proxy reference.
Using Subdomains
server {
listen 443 ssl http2;
server_name sonarr.{DOMAIN} sonarr;
location / {
proxy_pass http://sonarr:8989;
include /etc/nginx/conf.d/proxy-control.conf;
}
}
Using Subpaths
server {
location /sonarr {
proxy_pass http://sonarr:8989/sonarr;
include /etc/nginx/conf.d/proxy-control.conf;
}
}
Note
Set URL Base to /sonarr
in Sonarr before enabling the reverse-proxy.
<Config>
<UrlBase>/sonarr</UrlBase>
</Config>
Add Pre-existing Series to Sonarr
Existing files should be in a folder for each movie.
Movie › Bulk Import Movies › /data/tv
Be sure to set appropriate import behavior.
Be sure to search for correct match for episode if needed.
Add all existing shows (even no longer aired), these are all scanned when adding shows and will be crufty if not set.
Changing Media Location in Series
If series were imported under a different directory initially, these can be updated.
Series › Series Editor
Select all series that had location changes.
Root Folder (lower right) and enter new folder location.
Save
Ensure no Duplicate Plex Updates
Plex will trigger updates on inotify
events if configured to do so. If that
is the case:
Connect › Plex › Update Library › Disable
Otherwise duplicate items will appear on single files.