Deploy Flipt to Fly.io with Postgres
flyctl
CLI installed on your local machine (Installation guide: https://fly.io/docs/getting-started/installing-flyctl/)fly auth login
.cd
into a new directory for your Flipt deployment. (e.g. mkdir flipt-test && cd flipt-test
)ghcr.io/flipt-io/flipt:latest
image, which is the
latest stable release of Flipt. You can also use a specific version of Flipt
by replacing latest
with a specific version tag (e.g.
ghcr.io/flipt-io/flipt:v1.23.0
).fly.toml
file to your current directory. You can configure the number of instances, memory, and CPU allocated to your Flipt deployment. You can also set environment variables to customize Flipt’s configuration.
For more information, refer to the Fly.io documentation and the Flipt documentation.
FLIPT_DB_URL
secret to point to your newly configured Postgres database.
You can do this with the following command, replacing <your-db-url>
with the connection string from the launch process and appending the db name (postgres) and ?sslmode=disable
:
fly deploy
.fly open
in the CLI to open your newly deployed Flipt instance in the browser.
fly.toml
file. For example, to configure Flipt to use a custom port and enable DEBUG logging you can add the following to the fly.toml
file:
fly.toml
file, you can deploy the changes with fly deploy
.