Deploying my first Phoenix app to Fly.io - What do I really need?

Hi,

I’ve been learning Elixir and Phoenix for some time now I would like to deploy my first app to Fly.io. The thing is, I’m a beginner and I don’t really know how to structure my app and volumes.

So, I have a Phoenix app which uses Postgres as a database and the app allows users to upload images. I believe I have to create a VM and then I need to create a volume on which user uploads will be stored, right? Also, as I’m using postgres, do I need to create another volume for it or is there some other way to handle database?

As I said, I’m a beginner and I really hope someone could give me some guidance on how to set it up properly.

Thanks

Fly’s basic getting started guide covers the standard Phoenix + Postgres setup. You don’t need to create any sort of VM’s or volumes for that.

There’s also this post discussing what to do for file storage if you want to use Fly for that as well. Personally I’d use some other external service (eg S3) for storage.

1 Like