amI looking at using volumes for persistent data in our app. Is it possible to mount more than 1 volume, or to mount a volume with different destination paths?
Also, we need to fill our volume with initial static images, is it possible to mount a volume locally, or FTP into it?
If the volume is only being preloaded once ever then one option is to manually create a machine with that volume mounted, then use the flyctl sftp · Fly Docs command. Afterwards you destroy the machine and scale up your app to use the new volume.
I have an app where I’ve installed openssh-server and rsync. I can rsync files from my home into the primary region, and then run rsync on that machine to copy the files to all the other regions. I’ve blogged about that app and the app itself is on github.
You can create multiple directories on your volume and create symbolic links from various directories outside the volume to individual directories on the volume.