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.
Thank you very much I now have the container up and running.
Everything is working except auto eject. I had previously created makemkv in a VM on Synology including auto eject. The only difference I can see is that inside the VM, the container is looking for two optical drive devices which are present (sr2 and sg3) but outside the VM with the container running in Synology Container Manager it is only looking for one (sg5).
Do you have autoeject operating?