The application in the custom_apps directory cannot work

I use docker to run nextcloud and map the custom_apps directory to the host. However, as long as the app is placed in the custom_apps directory, it will not work normally, and the application tag cannot be displayed. After clicking the tag, I can only load a blank page, and the app will run normally after transferring it to the apps directory. It seems that because the application is stored in the data volume mounted by docker, I tried to map the apps directory. As a result, the application beans placed in the apps directory could not run. I have tried to modify directory permissions, but it has no effect, and I do not want to use privilege mode. Is there any way to solve this problem? Thank you very much.