Compose configuration to avoid permission errors when uploading attachments

If it really is a permission issue, there should be a message about it in the logs.

That should work.
I think in your case I’d just set the two variables and then chown -R 1000:1000 the files mount after that.