How to Setup Sonarr
Overview
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.
Important Docker Files
.env file
.env
NAME=sonarr
ID=
TZ=America/New_York
DOMAIN=
DOWNLOADS=
TV_MOUNT=
APPDATA=
PORT=8989
docker-compose.yml file
docker-compose.yml
services:
sonarr:
container_name: ${NAME}
image: lscr.io/linuxserver/sonarr:develop
restart: unless-stopped
environment:
PUID: ${ID}
PGID: ${ID}
TZ: ${TZ}
volumes:
- ${APPDATA}/${NAME}/config:/config
- ${TV_MOUNT}:/tv
- ${DOWNLOADS}/${NAME}:/downloads
networks:
- main
labels:
swag: enable
swag_address: ${NAME}
swag_port: ${PORT}
swag_proto: http
swag_url: ${NAME}.${DOMAIN}
swag_auth: authelia
swag_auth_bypass: /api
com.centurylinklabs.watchtower.enable: true
networks:
main:
external: true
Start the Container
Start the Container
docker compose up -d
Changelog
2025-03-08
- Added NFS Mounts to the
docker-compose.ymlfile. - Updated Variables and added them to
.env-samplefile. - Updated Network to follow new schema.
- Removed DNS from docker-compose file, as it is no longer needed.
- Previously fixed a DNS issue on some servers by using
tailscale up --accept-dns=falseto avoid overwriting the server’s DNS settings.
- Previously fixed a DNS issue on some servers by using