Sonarr Setup

TV Management.

See Sonarr Docker and Documentation.



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.

Docker Compose
  image: linuxserver/sonarr:latest
  restart: unless-stopped
    - nzbget
    - PGID=1001
    - PUID=1001
    - TZ=America/Los_Angeles
    - /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

0644 root root nginx/conf.d/reverse-proxy.conf
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

0644 root root nginx/conf.d/reverse-proxy.conf
server {
  location /sonarr {
    proxy_pass http://sonarr:8989/sonarr;
    include    /etc/nginx/conf.d/proxy-control.conf;


Set URL Base to /sonarr in Sonarr before enabling the reverse-proxy.

0640 user user /config/config.yaml

Add Pre-existing Series to Sonarr

  1. Existing files should be in a folder for each movie.

  2. Movie › Bulk Import Movies › /data/tv

  3. Be sure to set appropriate import behavior.

  4. Be sure to search for correct match for episode if needed.

  5. 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.

  1. Series › Series Editor

  2. Select all series that had location changes.

  3. Root Folder (lower right) and enter new folder location.

  4. 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.