These are the steps I used to get MakeMKV working from Docker on my Synology NAS (DS1520+).
In my setup, I have a shared folder for Media, for Downloads, and for Docker-related files. Amend these steps for your own purposes by using directories which exist on your NAS. My USB Blu-ray drive is a Pioneer BDR-XD05B.
- Enable SSH if needed.
- SSH to the Synology NAS.
- Connect USB CD-ROM drive to the physical NAS.
- Use
dmesg
to see which SCSI device was created.- In my case, it was
sg6
, so I knew that the device was created at/dev/sg6
. Adjust as needed for your own purposes.
- In my case, it was
- Create the needed directories:
mkdir -p /volume1/Docker/makemkv/config
- Copy
docker-compose.yml
from below to/volume1/Docker/makemkv
.- Adjust any directory names if needed.
- Adjust the name of the SCSI device if needed.
- Adjust the
MAKEMKV_KEY
environment variable value to contain your key. - Adjust any other environment variables needed. See documentation.
- Copy
99-usb-cdrom.rules
from below to/lib/udev/rules.d/
. (Requires root permissions withsudo
.)- At this time, you should also
chmod 0666 /dev/sg6
(or whichever device you have) so that you don't have to reboot to apply the necessary permissions. (Requires root permissions withsudo
.)
- At this time, you should also
- Change directory:
cd /volume1/Docker/makemkv
. - Create the container:
docker-compose up -d
. - Access MakeMKV on your Synology unit at http://<synology>:5800/.
- You can either open up port 5800 in the firewall settings in DSM, or you can set up a reverse proxy configuration to access it securely. Both methods are outside the scope of this procedure.
hey emilyst.
Thank you for the write up.
I did exactly what you've written (3 times) but I can't get my Pioneer drive working.
compose file:
99-usb-cdrom.rules:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18a5", ATTRS{idProduct}=="0428", GROUP="cdrom", MODE="0666"
Optical drive is mounted as sg5.
container starts, VNC access works, I'm able to remux local isos but the optical drive doesn't work.
It is recognised by the container and makemkv.
If I insert a disc, it starts spinning in makemkv and after ~60 seconds I get several messages:
SCSI Error "NOTREADY: logical unit is in process of becoming ready - offset xxxxxx"
udf: node fe/efe failed
I've redone the whole procedure multiple times, including rebooting the system....
Any idea that could help me here?