Back

Access docker volumes from appwrite function

  • 0
  • Self Hosted
  • Functions
  • Storage
Ernest
26 Apr, 2024, 10:19

Is there a way to save/access files on a server as volumes using appwrite functions? My use case is to save some files and then further process them with terminal programs on the server then finally save them to a storage bucket.

The current implementation I'm considering involves the function saving files to a bucket then downloading the files with curl on the server (host) processing them then uploading back to the bucket. I'd however prefer to skip the download and upload via curl and having the function do everything by having both host and function have access to the files using docker volumes. Any suggestion is appreciated. Thanks

TL;DR
Developers want to access Docker volumes from Appwrite functions to save and process files on the server without having to download/upload via curl. One solution is to mount a shared volume in the container using Docker Compose and then access the files from both the host and the function.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more