Sonarr in Docker optimized for Unraid
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.
Update: The container will check on every start/restart if there is a newer version available (you can also choose between stabel and nightly version - keep in mind that switching from a stable to a nightly version and vice versa will/can break the container).
Manual Version: You can also set a version manually by typing in the version number that you want to use for example: '2.0.0.5250' (without quotes) - you can also change it to 'latest' or 'nightly' like described above (works only for stable builds - don't forget to disable updates in the WebGUI if you are using a specific version).
ATTENTION: Don't change the port in the Sonarr config itself.
Migration: If you are migrating from another Container please be sure to deltete the files/folders 'logs', 'xdg' and 'config.xml', don't forget to change the root folder for your tv shows and select 'No, I'll Move the Files Myself'!
WARNING: The main configuration of the paths has a performance and disk usage impact: slow, I/O intensive moves and wasted disk space. For a detailed guide to change that see https://trash-guides.info/hardlinks/#unraid .
Env params
Name | Value | Example |
---|---|---|
DATA_DIR | Folder for configfiles and the application | /sonarr |
SONARR_REL | Select if you want to download a stable or prerelease | nightly |
MONO_START_PARAMS | Only change if you know what you are doing! | --debug |
UID | User Identifier | 99 |
GID | Group Identifier | 100 |
UMASK | Umask value for new created files | 0000 |
DATA_PERMS | Data permissions for config folder | 770 |
Run example
docker run --name Sonarr -d \
-p 8989:8989 \
--env 'SONARR_REL=nightly' \
--env 'MONO_START_PARAMS=--debug' \
--env 'UID=99' \
--env 'GID=100' \
--env 'UMASK=0000' \
--env 'DATA_PERMS=770' \
--volume /mnt/cache/appdata/sonarr:/sonarr \
--volume /mnt/user/TV-Shows:/mnt/tv \
--volume /mnt/user/Downloads:/mnt/downloads \
ich777/sonarr
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!