I do not use this feature myself but it appears that you have to add
- STORAGE_DRIVER=Type=Filesystem; Path=/path/to/storage
to the Joplin (app) environment variables.
It appears that others have tried and had access problems (see this example) so it may be wise to search this forum for STORAGE_DRIVER=Type=Filesystem to see what issues others have encountered.