Docker-App Lidarr

17.01.2021

Last modified: 17.01.2021
estimated reading time 1 min

About

Lidarr is an app, that you can use automatically download music per your preferences. It has a great modern interface and there are addons, that enhance the functions even further – for example an addon that automatically downloads MusicVideos as per your liking.

The Code

Use the following docker-compose file to get it up and running.
---
version: "2.1"
services:
  lidarr:
    image: linuxserver/lidarr
    container_name: lidarr
    environment:
      - PUID=0
      - PGID=100
      - TZ=Asia/Bangkok
      - UMASK_SET=022 #optional
    volumes:
      - /share/Container/container-data/lidarr/config:/config
      - /share/Media/music:/music
      - /share/Download/transmission-sonarr:/downloads
    ports:
      - 8686:8686
    restart: unless-stopped

Ensure that you adapt the parameters to your environment as explained below.

Parameters

Parameter Function
-p 8686 Application WebUI
-e PUID=0 for UserID – see below for explanation
-e PGID=100 for GroupID – see below for explanation
-e TZ=Asia/Bangkok Specify a timezone to use (Europe/London,…)
-e UMASK_SET=022 control permissions of files and directories created by Lidarr.
-v /config Configuration files for Lidarr.
-v /music Music files (See note in Application setup).
-v /downloads Path to your download folder for music (See note in Application setup).

Application Setup

Access the webui at <your-ip>:8686, for more information check out Lidarr.

Special Note:

Following the current folder structure will result in an inability to hardlink from your downloads to your Music folder because they are on seperate volumes. To support hardlinking, simply ensure that the Music and downloads data are on a single volume. For example, if you have /mnt/storage/Music and /mnt/storage/downloads/completed/Music, you would want something like /mnt/storage:/media for your volume. Then you can hardlink from /media/downloads/completed to /media/Music.

Another item to keep in mind is that within lidarr itself, you should then map your download client folder to your lidarr folder:
Settings / Download Client / advanced / remote path mappings.
I input the host of my download client (matches the download client defined) remote path is /downloads/Music (relative to the internal container path) and local path is /media/downloads/completed/Music, assuming you have folders to separate your downloaded data types.

One more thing

For Lidarr is a mod available:
by adding the environment variable DOCKER_MODS=linuxserver/mods:lidarr-flac2mp3 you add a script that automatically converts flac to 320kbps mp3 files.
Detailed instructions how to implement this mod can be found

 
Tags:
Was this article helpful?
Dislike 0
Views: 51