This repo can be used to spin up a slim VM running Pocketbase on Fly.io.
The Docker image is based on Google's distroless containers, which comes with security benefits and usability drawbacks, see Dockerfile
.
This project has a GitHub Action configured to continuously deploy the app.
- sign up on Fly.io, e.g. via GitHub
- install
flyctl
on your machine:brew install flyctl
- log in via
fly auth login
- launch via
fly launch
, use the checked infly.toml
- deploy changes via
fly deploy
, or use the GitHub Action explained in the next step
- generate a deploy token via
fly tokens create deploy -x 999999h
- go to your repository on GitHub and select
Settings
- under
Secrets and variables
, selectActions
, and then create a new repository secret calledFLY_API_TOKEN
with the value of this freshly generated token - a push to
main
or a merged pull request tomain
will trigger a deploy action