My Sonarr Setup#
This Sonarr setup runs in a Docker container and is used to manage TV series downloads. It includes configurations for environment variables, volume mounts, and networking.
Prepare the Downloads Folder#
sudo mkdir -p /home/server1/downloads
sudo chown -R 1000:1000 /home/server1/downloads
My Docker Compose Configuration#
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/server1/sonarr/config:/config
- /home/server1/downloads:/downloads
- /mnt/main_nas/tv_shows:/main_nas/tv # optional
- /mnt/sean_nas/tv_shows:/sean_nas/tv # optional
ports:
- "8989:8989"
restart: unless-stopped
Using Docker Secrets for Environment Variables#
You can set any environment variable from a file by using a special prepend FILE__.
For example:
FILE__MYVAR=/run/secrets/mysecretvariable