Setup & Configuration
We need to install the service through Portainer and configure any necessary settings.
Preparation
There are some things we need to do in preparation to install this service.
Volumes
Persistent Data
This is where the service will store its own application data and ensures we can quickly update the service image.
Ensure your user has permissions to access the folder.
Media Folders
Sonarr will need access to the folders where you store your television files.
Ensure your user has permissions to access the folder.
Download Folders
Sonarr will need access to the folder where you torrent or usenet folder store their completed downloads.
Ensure your user has permissions to access the folder.
Environment
PUID
This is the numeric ID of the user account on Debian. If you are unsure, open a terminal and run:
id -u
PGID
Installation
The service can be installed through the Portainer web interface.
Learn about creating a new stack.
Docker Compose
Use the following code to install the service:
---
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
network_mode: bridge
environment:
- PUID=1000
- PGID=1000
- TZ=America/Vancouver
volumes:
# Persistent Data
- /srv/sonarr:/config
# Media Folders
- /mnt/television:/mmt/television
# Downloads Folder
- /mnt/downloads:/mnt/downloads
ports:
- 8989:8989
restart: unless-stopped
Updating
Re-Deploy the Stack
This service has been optimized for running in Docker thanks to LinuxServer.io.
This allows you to re-deploy the stack through Portainer to download the latest updates.