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.
Don’t sweat it. This process is a little arcane if you’re new to operating systems like Linux.
That’s correct! (It’s very odd I bothered to describe everything else so carefully and then skipped this part. I’ll revise the instructions.)
You won’t be able to do it from the GUI, that’s true. You’ll need to create the file, upload it to the Synology NAS (if it isn’t already there somewhere), and then copy it to the correct place.
First, you just need to create the file as plain text, with the above contents. The easiest way is actually to download it from this Gist. You can do so from the “Download ZIP” button at the top right of this page. Inside that ZIP file, you’ll find the .rules file. Edit it in something like Notepad or Text Edit. Insert the numbers in the correct positions.
If you haven’t already copied the file to the Synology NAS somewhere, do so. Doesn’t matter where, just so long as you know where to find it.
Finally, from the command line, you’ll need to copy the file to the correct place. The specific command you use will depend on where you copied the file. Use a command like the following:
After that, you can proceed to step 8.
I hope this helps. If you’re troubleshooting, here’s a couple of tips.