Sign inSign up

kahooli/sonarr-sma

By kahooli

•Updated over 5 years ago

updated version under testing

Image
0

10K+

kahooli/sonarr-sma repository overview

⁠Official SMA container based on linuxserver/sonarr

Docker container for Sonarr that includes all FFMPEG and python requirements to run SMA with Sonarr.

⁠Version Tags

TagDescription
latestStable release from Sonarr with precompiled FFMPEG binaries
buildStable release from Sonarr with FFMPEG compiled from jrottenberg/ffmpeg
developDevelop release from Sonarr with precompiled FFMPEG binaries

⁠Usage

⁠Recent update

As of 3/9/2020 the containers were overhauled and the location of the script was changed from /usr/local/bin/sma/sickbeard_mp4_automator to /usr/local/sma. The autoProcess mount point has been modified as well to be more docker friendly in a /usr/local/sma/config directory. Please review and update accordingly.

⁠docker-compose
services:
  sonarr:
    image: mdhiggins/sonarr-sma
    container_name: sonarr
    volumes:
      - /opt/appdata/sonarr:/config
      - /opt/appdata/sma:/usr/local/sma/config
      - /mnt/storage/tv:/tv
      - /mnt/storage/downloads:/downloads
    ports:
      - 8989:8989
    restart: always
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
⁠autoProcess.ini
  • Mount autoProcess.ini containing directory to /usr/local/sma/config using volumes
  • Consider making this writable as new options will be auto written to the config as they are added
  • Sonarr configuration options are read from config.xml inside the container and injected at runtime into autoProcess.ini
  • ffmpeg
  • ffprobe
  • host (read from environment variable or set to 127.0.0.1)
  • web_root
  • port
  • ssl
⁠FFMPEG Binaries
  • /usr/local/bin/ffmpeg
  • /usr/local/bin/ffprobe

⁠Configuring Sonarr

⁠Enable completed download handling
  • Settings > Download Client > Completed Download Handling > Enable: Yes
⁠Add Custom Script
  • Settings > Connect > + Add > Custom Script
ParameterValue
On GrabNo
On DownloadYes
On UpgradeYes
On RenameNo
Path/usr/local/sma/postSonarr.sh

⁠Logs

Located at /usr/local/sma/config/sma.log inside the container and your mounted config folder

⁠Environment Variables

VariableDescription
PUIDUser ID
PGIDGroup ID
HOSTLocal IP address for callback requests, default 127.0.0.1
SMA_PATH/usr/local/sma
SMA_UPDATEDefault false. Set true to pull git update of SMA on restart

⁠Special Considerations

Using the build tag leverages mulit-stage docker builds to generate FFMPEG compiled using jrottenberg/ffmpeg's⁠ containers. This allows flexibility with building FFMPEG using special options such as VAAPI or NVENC. Building locally allows ARG values to be set to change the underlying parent container tags as below. It is recommended that you match your Ubuntu version in the ffmpeg_tag and sonarr_tag to ensure no missing dependencies.

ARGDefaultDescription
ffmpeg_taglatestSet tag to correspond to jrottenberg/ffmpeg:tag
sonarr_taglatestSet tag to correspond to linuxserver/sonarr:tag
⁠VAAPI docker-compose sample
services:
  sonarr:
    container_name: sonarr
    build:
      context: https://github.com/mdhiggins/sonarr-sma.git#build
      args:
        - ffmpeg_tag=4.2-vaapi

Tag summary

Content type

Image

Digest

Size

978.5 MB

Last updated

over 5 years ago

docker pull kahooli/sonarr-sma:build