Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=568
- PGID=568
- TZ=America/New_York
volumes:
- /mnt/tank/configs/sonarr:/config
- /mnt/tank/media:/media
ports:
- 8989:8989
restart: unless-stopped
/media/tv
directorySetting | Value |
---|---|
Host | Server IP |
Port | qBittorrent WebUI port |
Credentials | Set up during qBittorrent installation |
The below settings are for advanced users and are totally optional. To see all of the Advanced fields (usually colored orange) be sure to click the cog icon in the top left of the window to Show Advanced.
This assumes you are using Recyclarr to sync data to Sonarr. If you are not, do not continue. See the video walkthrough below for more details.
Field | Value |
---|---|
Rename Episodes | True |
Standard Episode Format | {Series TitleYear} - S{season:00}E{episode:00} - {Episode CleanTitle} [{Custom Formats }{Quality Full}]{[MediaInfo VideoDynamicRangeType]}{[Mediainfo AudioCodec}{ Mediainfo AudioChannels]}{[MediaInfo VideoCodec]} |
Daily Episode Format | {Series TitleYear} - {Air-Date} - {Episode CleanTitle} [{Custom Formats }{Quality Full}]{[MediaInfo VideoDynamicRangeType]}{[Mediainfo AudioCodec}{ Mediainfo AudioChannels]}{[MediaInfo VideoCodec]} |
Anime Episode Format | {Series TitleYear} - S{season:00}E{episode:00} - {absolute:000} - {Episode CleanTitle} [{Custom Formats }{Quality Full}]{[MediaInfo VideoDynamicRangeType]}[{MediaInfo VideoBitDepth}bit]{[MediaInfo VideoCodec]}[{Mediainfo AudioCodec} { Mediainfo AudioChannels}]{MediaInfo AudioLanguages} |
Series Folder Format | {Series TitleYear} [imdbid-{ImdbId}] |
Episode Title Required | Never |
Propers and Repacks | Do Not Prefer |
Recycling Bin Cleanup | 1 |
Set Permissions | True |
chmod Folder | 777 |
Why use Recyclarr profiles?
Recyclarr automates profile creation and ensures consistent quality filtering, metadata tagging, and download prioritization for a better Sonarr experience.
See this section of the Notifications page.
Select Kodi (XBMC)/Emby and check the Enable box. Save and close.
Why enable metadata?
Enabling metadata allows Sonarr to send detailed episode information, artwork, and tags to your media server (Kodi/Emby), enhancing library organization.
/media
ls -lah /mnt/tank/media/tv
chown -R 568:568 /mnt/tank/media/tv
Ensure your user (PUID / PGID) has access to the media folders.
Try running:
chmod -R 770 /mnt/tank/media/tv