How to deploy a NestJS Docker container to Fly.io

Sdílet
Vložit
  • čas přidán 9. 09. 2021
  • In this video, I'll show you how to deploy a NestJS application to the free tier of Fly.io. If you've tried this before, you've probably run into "Out of memory" errors or other deployment problems. I'll be showing you how to fix that here!
    If you enjoyed the video, be sure to like and subscribe.
    Let me know in the comments if you have any ideas for future videos you'd like to see!
    Stay safe everyone!
    Links:
    Fly.io Install Docs: fly.io/docs/getting-started/i...
    Dockerfile template: github.com/Saluki/nestjs-temp...

Komentáře • 8

  • @permanar_
    @permanar_ Před 2 lety +3

    Hey, thanks for the video. This is really helpful since I'm hopping around to see if there's other alternative besides Heroku, Vercel, etc.
    Keep up the spirit man!

  • @juscilan
    @juscilan Před rokem

    This was very useful. Thank you!

  • @dawid_dahl
    @dawid_dahl Před rokem +3

    So if we use docker-compose with Prisma or something, will the deployment be a lot different? Have any example/videos on that?

  • @yumindev
    @yumindev Před rokem

    Thank you so much sir

  • @ryanmsnyder
    @ryanmsnyder Před rokem +1

    Does the RAM threshold matter when it comes to image size? My image size comes out to 362 MB but still deploys successfully on the free tier. Great video btw. Thanks

    • @hmilbradt
      @hmilbradt  Před rokem

      It’s very dependent on what you’re doing. In your case it works, in other cases someone may have a tiny image size that uses a significant amount of RAM usage.
      Often apps that have a lot of code and dependencies to load at startup will have higher RAM usage, while simpler apps might use very little.
      But RAM isn’t necessarily related to storage, unless you’re loading files into memory.

  • @Mark-nm9sm
    @Mark-nm9sm Před rokem

    Idk what to do with the ip , ive added a v4 and a v6 but it still wont run my app