A Fly App can be almost anything
From an admin point of view, a Fly App is just a group of Machines (with optional attached volumes) that belongs to one organization. From a developer point of view, a Fly App might be:- a fullstack application (or just part of one)
- a database
- a few Machines running tasks, or a bunch of Machines, all with different configs, doing things you want them to do
- anything you can think of doing with fast-launching Machines
Components of a Fly App
Fly Apps include:- app configuration
- provisioned resources
- Anycast IP addresses
- certificates
- custom domains
- secrets
- Fly Volumes (optional)
Ways to create an app
There might be an infinite number of potential apps you can run on Fly.io, but there are only a few ways to create one.Create and deploy with Fly Launch
Fly Launch is perfect for most apps and databases. Use Fly Launch to create your app and then manage the whole lifecycle, from starting to scaling to changing and redeploying. Get started with Fly Launch or learn more about using Fly Launch to create, configure, deploy, and scale your app.Create an app manually
Most of the time, all you need is Fly Launch to create and manage your app. But you can skip all the handy launch scanners and resource provisioning Fly Launch offers and use thefly apps create command or the Machines API to create an app and then piece it together.
You can get a fly.toml config file from an example app or hand-craft one yourself. Or if you don’t need app-wide config, you can use the Fly App to hold the Machines you plan to spin up individually based on a particular image.
Using the fly apps create command is useful when deploying our autoscaler app, or example apps created by others, that already have fly.toml and Dockerfiles ready to go.
Creating apps with the Machines API might be the right choice if you want to create apps for your own users with pre-defined or custom fly.toml files.
For more information, see the fly apps create docs and the create App resource docs.
Tip: When you create a Machine with
fly machine run without specifying an app to put it in, you automatically get a new app at the same time. This scenario might be useful when you’re spinning up individual Machines on-demand for multiple users or tasks.