Migrate from Northflank
Translate Northflank services, OCI images, Secret Groups, addons and jobs to Gregale step by step.
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
| Northflank | Gregale |
|---|---|
| Project | Project (multi-service Compose / workspace deploy) |
| Combined / Deployment service | App, deployed with gregale deploy |
| Container runtime | Firecracker microVM per instance (Container compatibility) |
| Buildpack / Dockerfile build | Source builds for Node, Bun, Python, Go (Deploy a web framework) or your Dockerfile |
| External Docker registry image | gregale 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 / autoscaling | Idle 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 DNS | Project services call each other at http://<service>.internal:10081 (Multi-service apps) |
| Background worker / private deployment | Compose service without ports: in a project |
| Manual / Cron Job | Jobs (gregale job create --image ... --schedule ...) or HTTP Crons |
| Secret Group / runtime environment variables | Secrets (gregale env set) and environment variables |
| Northflank PostgreSQL addon | Managed PostgreSQL, bound as DATABASE_URL |
| Persistent Volume addon | No local persistent disk: move state to managed PostgreSQL or object storage |
| Release flow / manual rollback | Automatic 1% → 10% → 50% → 100% canary rollouts with 5xx rollback + gregale rollback my-api --to v41 --restore-databases (Safe releases) |
| Custom domains | Custom domains |
| Service logs | gregale logs my-api (Logs) |
| Spend cap | Hard 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:
# gregale.yaml
hosting:
port: 8080
health: /healthz
release:
command: npm run migrate
Check source build detection without uploading:
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:
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.
gregale deploy --name my-api --secrets-file northflank.env
rm northflank.env
Or deploy a prebuilt image directly:
gregale deploy --name my-api --image ghcr.io/acme/api@sha256:<digest> --secrets-file northflank.env
rm northflank.env
If the deploy fails:
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.5432or6379) withgregale 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_URLDump 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 viaMIGRATION_DATABASE_URL; your app connects through pooledDATABASE_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 withoutports: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.
Related articles
Northflank alternatives in 2026 compares the main platforms people move to from Northflank.
Spotted a problem on this page? Tell us