Mount each "USER ID" dir from container to NAS/host.

Here is the problem, I have a seperate NFS/CIFS shares for me and my girlfriend and I want to backup her uploads to her NFS share a my upload to my NFS share. If I mount /usr/src/app/upload to my NAS then I mount every user /usr/src/app/upload/1234*** and /usr/src/app/upload/5678*** to one location, so i thought I mount each user id folder to are own shares like this
${MY_UPLOAD_LOCATION}:/usr/src/app/upload/1234***
${HER_UPLOAD_LOCATION}:/usr/src/app/upload/5678***


It is working, but it looks likes the application is not designed like that
  1. when I mount /usr/src/app/upload/ I can see a correct storage usage (pic_1) when I mount each USER ID directory it shows me the local (container) available en used storage.
  2. after a photo upload (cli and web) I only see the actual file after a migration job on my mounted share.
Does anyone have a solution to get this working and separate the storage for each user?
Screenshot_from_2023-03-24_14-03-19.png
Screenshot_from_2023-03-24_14-11-08.png
Was this page helpful?