I’m curious if there’s a specific way to go about doing this?
Can I just set my docker-compose.yaml to
volumes:
- "/opt/navidrome/data:/data"
- "http://192.168.0.88/Shared Music/:/music:ro"
Or do I have to mount the directory first
Or can I use the ND_BASEURL
?
I think you need to mount the directory first. I’m not aware that docker can directly mount volumes from another server.
Thanks, do you know what the optimal way to do this on boot is? Or is it best just to do it manually?
I’m using NFS shares to mount remote directories. You’ll find plenty of tutorials, I guess, but the general approach will be to export folders on the remote machine (/etc/exports) and then mount them, either manually or in /etc/fstab. This assumes you are using Linux, other OSs will be different or will use different protocols (Samba?). What’s best is depending on your use case, but it’s not hard to automatically mount shares…