I’m new to Docker, but I’m trying to deploy some containers that will need to read and write to a network shared volume. I’m hoping to run things like Navidrome, Immich, and an Arr Stack. The containers are on Ubuntu and my network volume is on a qnap machine. It is discoverable from Ubuntu without issue.
Do I need to mount the shared volume in Ubuntu or can I just refer to it in the Docker Compose file?
I know I need to mention the location of the volume in the Docker Compose file, but I’m not sure how to write that. How do I include the un/pw information for the NAS?
I read about bind mounts in Docker’s documentation. Is that what I want to use? Again, how do I include the un/pw information? I’m not sure how to use the commands.
The volume path for the navidrome folder is //tiger-nas/music/music for example.
I appreciate any help.


My network shared folders are on a windows 11 (yes, I know. It’s shit.) pc and my docker is running on Linux.
Here’s what my mounts look like -
volumes: plex: driver: local driver_opts: type: cifs o: username=pc_username,password=pc_password,vers=3.0,file_mode=0777,dir_mode=0777 device: //10.0.0.3/PlexHope this helps.
That helps. And it answers my question about the credentials. Thank you.