Using Synology NAS drive as volume with Docker compose on Mac

Hi

This is driving me nuts!!

How can I setup a volume to a NAS drive on the host side without getting permission denied?

I normally have to supply username and password to access the NAS but can’t for the live of me figure out how to supply these details within the compose yaml file.

I’ve searched for hours to no avail. I hope someone can steer me in the right direction.

Thanks!!
Lee