# Deploying my first Phoenix app... what do I really need?

**URL:** <https://community.fly.io/t/deploying-my-first-phoenix-app-what-do-i-really-need/11538>\
**Category:** Questions / Help\
**Tags:** elixir, postgres, login-only\
**Created:** [March 17, 2023, 9:44am UTC](https://community.fly.io/t/deploying-my-first-phoenix-app-what-do-i-really-need/11538 "2023-03-17T09:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matijalasic](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@matijalasic](https://community.fly.io/u/matijalasic)\
**Post date:** [March 17, 2023, 9:44am UTC](https://community.fly.io/t/deploying-my-first-phoenix-app-what-do-i-really-need/11538/1 "2023-03-17T09:44:47Z")

</div>

Hello,

I’ve been learning Elixir and Phoenix for some time now I would like to deploy my first app. 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?

Second, I would like to connect my app to Cloudflare so static files and user images could be loaded from it, how do I set that up?

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

---

<div class="post-metadata">

**Author:** ![dangra](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/dangra/32/4413_2.png) [@dangra](https://community.fly.io/u/dangra)\
**Post date:** [March 20, 2023, 4:28pm UTC](https://community.fly.io/t/deploying-my-first-phoenix-app-what-do-i-really-need/11538/2 "2023-03-20T16:28:56Z")

</div>

Hi @matijalasic,

Start simple, try `fly launch` on your phoenix app following this guide [Speedrun! Deploying to Fly.io! · Fly Docs](https://fly.io/docs/speedrun/)

No need to setup Cloudflare either, static assets are served smartly directly from [Fly.io](http://Fly.io) infra which is globally distributed too, see [how to serve static files](https://fly.io/docs/reference/configuration/#the-statics-sections)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [March 27, 2023, 4:29pm UTC](https://community.fly.io/t/deploying-my-first-phoenix-app-what-do-i-really-need/11538/3 "2023-03-27T16:29:13Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
