Docker container is not able to process pdf while on local it is working ( Getting 403 forbidden error in container)

Hello,

I have the below docker-compose file where I am mounting the host path to the docker container. In this app I need to upload any formatted document that converts into pdf and then process it, pdf is being generated inside the path but it is not able to process and giving me 403 forbidden
volumes:
- /mnt/datadisk0/ap-copilot/models/:/models:
- /mnt/datadisk0/ap-copilot/:/data:

Error:
ERROR: Error loading PDF from /data/documents/create_vector_store_multimodal_c20746ad-f28a-43b3-a5b0-975d9bd7a711/Kingsport.pdf: HTTP Error 403: Forbidden

Note: I have already tried to give 777 permissions to all folders and files.

Anyone has any idea? Please suggest any possible solution to this problem.

Thanks in advance!