Documentation Frameworks and migration

Migrate from Northflank

Translate Northflank services, OCI images, Secret Groups, addons and jobs to Gregale step by step.

~3 min read
On this page

A Northflank combined service, deployment service, or Dockerfile app usually moves to Gregale without code changes: Gregale builds from your Git repository or deploys your OCI image (gregale deploy --image ...), binds PORT, and injects secrets as environment variables. Northflank project templates and UI resource graphs do not carry over; this page maps them to Gregale and walks through a move.

How Northflank maps to Gregale

NorthflankGregale
ProjectProject (multi-service Compose / workspace deploy)
Combined / Deployment serviceApp, deployed with gregale deploy
Container runtimeFirecracker microVM per instance (Container compatibility)
Buildpack / Dockerfile buildSource builds for Node, Bun, Python, Go (Deploy a web framework) or your Dockerfile
External Docker registry imagegregale deploy --image ... with gregale registry set (Registry credentials)
Health probes (HTTP startup / liveness)hosting.health and hosting.readiness_probe in gregale.yaml (Deployment overrides)
Always-on container billing / autoscalingIdle apps pause after ~1s and scale to zero automatically (Scale to zero); hold minimum instances with gregale app scale my-api --min 1 (Pro/Scale)
Private network service DNSProject services call each other at http://<service>.internal:10081 (Multi-service apps)
Background worker / private deploymentCompose service without ports: in a project
Manual / Cron JobJobs (gregale job create --image ... --schedule ...) or HTTP Crons
Secret Group / runtime environment variablesSecrets (gregale env set) and environment variables
Northflank PostgreSQL addonManaged PostgreSQL, bound as DATABASE_URL
Persistent Volume addonNo local persistent disk: move state to managed PostgreSQL or object storage
Release flow / manual rollbackAutomatic 1% → 10% → 50% → 100% canary rollouts with 5xx rollback + gregale rollback my-api --to v41 --restore-databases (Safe releases)
Custom domainsCustom domains
Service logsgregale logs my-api (Logs)
Spend capHard monthly spend caps on every paid plan (Cost controls)

Translate services, images, and jobs

If your Northflank service overrides its entrypoint, sets a custom port, or runs a pre-traffic migration, put those settings in gregale.yaml:

yaml
# gregale.yaml
hosting:
  port: 8080
  health: /healthz
release:
  command: npm run migrate

Check source build detection without uploading:

bash
gregale deploy --dry-run

If Northflank deploys an image from a private OCI registry (GHCR, Docker Hub, ECR, GAR, ACR), configure credentials first (Registry credentials) and validate the image:

bash
printf '%s\n' "$REGISTRY_TOKEN" | gregale registry set --app my-api --registry ghcr.io --user "$GITHUB_ACTOR" --password-stdin
gregale deploy check --image ghcr.io/acme/api@sha256:<digest>

Copy Secret Groups and deploy

Export your Northflank Secret Group / service runtime variables into a single-line KEY=VALUE file without quotes, removing NF_* platform variables and any addon POSTGRES_URI you are replacing. Set multiline secrets (like PEM keys) afterward via gregale env set.

bash
gregale deploy --name my-api --secrets-file northflank.env
rm northflank.env

Or deploy a prebuilt image directly:

bash
gregale deploy --name my-api --image ghcr.io/acme/api@sha256:<digest> --secrets-file northflank.env
rm northflank.env

If the deploy fails:

bash
gregale app health my-api --errors
gregale logs my-api

Databases, Redis, and storage

  • Keep Northflank PostgreSQL or Redis temporarily. Enable external TLS access on your Northflank addon, put its connection URI in northflank.env, and on Pro and Scale open its outbound port (e.g. 5432 or 6379) with gregale app egress-ports add my-api 5432 (Networking).

  • Move PostgreSQL to Gregale Managed PostgreSQL. Provision and attach a migration credential:

    bash
    gregale add postgres --app my-api
    gregale postgres attach my-api-postgres my-api --access migration --env MIGRATION_DATABASE_URL
    

    Dump via Northflank's external connection string or northflank forward addon, then restore through Connect from your laptop (needs app tasks on your plan). Run migrations via MIGRATION_DATABASE_URL; your app connects through pooled DATABASE_URL (Managed PostgreSQL). Note: Gregale does not run managed Redis/MongoDB addons; keep those external if needed.

Multi-service projects and scheduled jobs

  • Multi-service projects. Put your API, internal services, and background workers into a single Compose file and deploy with gregale deploy (Multi-service apps). Services without ports: run continuously as background workers.
  • Northflank Jobs. Replace cron jobs with HTTP Crons or scheduled container Jobs (gregale job create nightly --image ... --schedule "0 3 * * *").

Switch traffic

Verify your domain (Custom domains), move DNS, and pause or delete the Northflank services after confirming traffic on Gregale.

Northflank alternatives in 2026 compares the main platforms people move to from Northflank.

Spotted a problem on this page? Tell us