Skip to content

Commit

Permalink
chore: scaffold additional sections
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeify committed Aug 19, 2024
1 parent ac6543d commit 5b8e99c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Fly.io.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ No IaC story at the moment. Had a previous terraform provider but was discontinu
## [Pricing][1]

There is no "free allowance" on new fly.io plans (referred to as "Pay As You Go"), instead, you pay for compute resources as you use them.
However bills that accumulate a usage of less than US$5.00/mo are currently waived.

For the majority of apps, fly machines in the `shared-cpu-1x` category will be sufficient.
As an example, for a near-stock Rails app that was deployed to the Sydney region, the resources created were:
Expand All @@ -16,5 +17,37 @@ As an example, for a near-stock Rails app that was deployed to the Sydney region
Apps that are shutdown but persist on Fly.io accumulate a RootFS storage fee of $0.15/GB/month—this covers the cost of the file system, and is based on your OCI image generated from your app.
[This change took effect from April 2024][2].

## Deployment

An example deployment flow using `fly.io` for a Ruby on Rails app.

### Integrating secrets

`flyctl launch --no-deploy`

Add TAILSCALE_AUTHKEY secret
Add RAILS_SECRET_KEY_BASE secret

`flyctl deploy`

https://community.fly.io/t/setting-secrets-before-the-first-deployment-does-nothing/5589/7


### Runtime secrets


### Networking

Apps created with Fly.io are immediately assigned an IP address and provided with a `.fly.dev` domain name.
The public-facing IP address can be removed via either `flyctl` or through the GUI.

TODO:

https://fly.io/docs/blueprints/private-applications-flycast/
https://fly.io/docs/blueprints/connect-private-network-wireguard/
https://tailscale.com/kb/1132/flydotio
https://community.fly.io/t/accessing-an-external-non-public-resource-from-your-fly-io-app/10180
https://community.fly.io/t/connecting-your-fly-apps-to-your-tailscale-tailnet/17828

[1]: https://fly.io/docs/about/pricing/
[2]: https://community.fly.io/t/we-are-going-to-start-collecting-charges-for-stopped-machines-rootfs-starting-april-25th/17825

0 comments on commit 5b8e99c

Please sign in to comment.