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.
I'm so glad I could be helpful!
I wrote this almost three years ago and then promptly forgot about it until your comment. I'm afraid I don't remember, and I probably did not get auto-eject working. Sorry. Feel free to follow up if you do get that working as well.