Self-host Prefect on a VPS
Python-native workflow orchestration with scheduling, retries, and a dashboard for every flow run.
levelrail-cli templates deploy prefect --name my-prefectSpecification
- Status
- Listed
- Category
- Automation
- Services
- db, prefect
- Ports
- 4200
- Volumes
- 2
- Memory
- about 1 GiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
- License
- Permissive license, Apache-2.0
About Prefect
Python-native workflow orchestration with scheduling, retries, and a dashboard for every flow run. Runs 2 containers (db, prefect), with prefect listening on port 4200 and keeps its data in named volumes.
What it deploys
Prefect runs as 2 services in a single Compose app, listening on port 4200, with 2 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| db | postgres | 16-alpine | none | prefect_db_data -> /var/lib/postgresql/data |
| prefect | prefecthq/prefect | 3-latest | 4200 | prefect_data -> /data |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 4200 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 2 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| db | POSTGRES_DB | Preset by the template |
| db | POSTGRES_PASSWORD | Generated at deploy |
| db | POSTGRES_USER | Preset by the template |
| prefect | PREFECT_API_DATABASE_CONNECTION_URL | Generated at deploy |
| prefect | PREFECT_HOME | Preset by the template |
Install Prefect on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get prefect -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy prefect --name my-prefect
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Prefect.
Docs and upstream
More in Automation
- Node-REDA flow-based visual editor for wiring together hardware, APIs, and online services.
- n8n (Postgres)n8n backed by Postgres instead of its default SQLite file, for production workflow volumes.
- n8nBuild automations and connect your tools with a visual, node-based workflow editor.
- TemporalDurable workflow execution: write long-running business logic as code and let Temporal survive failures.
- WindmillTurn scripts in Python, TypeScript, Go, and SQL into webhooks, workflows, and internal UIs.
- autobrrMatches torrent releases from your indexers against filters and pushes hits straight to your download client.