Prerequisites
- A Fly.io account
- The Fly.io CLI (
flyctl) installed and authenticated withfly auth login
Launching the App
From an empty directory, runfly launch and point it at the ParadeDB Docker image. The --no-deploy flag lets you edit the generated fly.toml before the first deploy so you can add the persistent volume and secrets:
fly.toml in the current directory.
See Docker Hub for available tags.
Creating a Persistent Volume
Create a Fly.io volume in the same region as the app so data survives restarts and redeploys:<REGION> with the region you chose during fly launch.
Setting the Postgres Password
StorePOSTGRES_PASSWORD as a Fly.io secret to keep it out of your configuration file.
Deploying ParadeDB
Add the database settings and persistent volume mount to yourfly.toml:
Connecting to ParadeDB
From Your Local Machine
Open a local connection to ParadeDB through Fly.io’s proxy:psql from another terminal:
Public Connections
To make ParadeDB accessible over the internet, configure a TCP service on port 5432 infly.toml and allocate a dedicated IPv4 address: