To explain, I have a bunch of SSD drives in USB enclosures (JABOD nor RAID).
They are mounted by my Debian 10 to /media/username folder and each disk goes by its label.
So, I have 5 SSD's (each having subdirectories) all located in /media/username folder.
The line "-v /media/vz:/media \" makes MIiniDLNA scrape the library at the disk level, so I have done further mapping in the minidlna.conf file as follows:
[Support] binhex - MiniDLNA
in Docker Containers
Posted · Edited by bpr323
This is the only MiniDLNA container that actually worked for me, nice work sir!
It maps out the minidlna.conf out to my main server folder, so I can edit it and it takes effect on the container.
My slightly tweaked version is this:
docker run -d \
--net="host" \
--name=minidlna \
-v /media/username:/media \
-v /docker/appdata/minidlna:/config \
-v /etc/localtime:/etc/localtime:ro \
-e SCAN_ON_BOOT=yes \
-e UMASK=000 \
-e PUID=1000 \
-e PGID=1000 \
--restart unless-stopped \
binhex/arch-minidlna:latest
To explain, I have a bunch of SSD drives in USB enclosures (JABOD nor RAID).
They are mounted by my Debian 10 to /media/username folder and each disk goes by its label.
So, I have 5 SSD's (each having subdirectories) all located in /media/username folder.
The line "-v /media/vz:/media \" makes MIiniDLNA scrape the library at the disk level, so I have done further mapping in the minidlna.conf file as follows:
root_container=B
media_dir=/media/disk1/KINO-ENG
media_dir=/media/disk1/KINO-RUS
media_dir=/media/disk2/MULT-ENG
media_dir=/media/disk2/MULT-RUS
Note the location omits the /username/ from the path - this is due to "-v /media/username:/media \" line.
I use BubbleUPNP (on Android phone) to link the renderer (Kodi) and the library (MiniDLNA) so that when I tap on <Library> my phone screen shows:
KINO-ENG
KINO-RUS
MULT-ENG
MULT-RUS
This is due to the "root_container=B" line in the minidlna.conf.
Just my 5c suggestion is to add " --restart unless-stopped \" to the docker run so that MiniDLNA auto-restarts after you boot the server.
Thank you Binhex, nice work! I will try out your other containers, next one in line is Minecraft