Sonarr logo

Sonarr

PVR for Usenet and BitTorrent users that automates TV show downloads


Sonarr is a PVR for Usenet and BitTorrent users that monitors multiple RSS feeds for new episodes of your favorite shows and grabs, sorts and renames them. It can scan your existing library for missing episodes and automatically upgrade quality when a better release becomes available. Self-host it with a web UI and integrations for SABnzbd, NZBGet and common torrent clients.

Sonarr Docker Compose example

Self-host Sonarr on your own server, homelab, or VPS starting from this Docker Compose example. It runs Sonarr in Docker containers using the official lscr.io/linuxserver/sonarr:latest image, with persistent volumes and automatic restarts preconfigured. Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.

services:
  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    environment:
      # User ID the app runs as (LinuxServer.io convention, controls file ownership on the config and media volumes).
      - PUID=1000
      # Group ID the app runs as.
      - PGID=1000
      # Container timezone, e.g. Europe/London. See the tz database for valid values.
      - TZ=Etc/UTC
    volumes:
      # Database and Sonarr configuration.
      - config:/config
      # TV library on disk; Sonarr moves and renames finished episodes here.
      - tv:/tv
      # Download client output directory; mount the same storage your download client writes to.
      - downloads:/downloads
    restart: unless-stopped

volumes:
  config:
  tv:
  downloads:

Prefer a managed setup? WinterFlow installs, configures, and updates Sonarr for you using this same Docker Compose configuration.