What is Unleash?
Unleash is a mature, open-source feature-flag platform: gradual rollouts, per-environment strategies, user targeting and segments, A/B experiments, and an admin UI that non-engineers can actually use. SDKs cover every major language and framework.
This template is the server plus a managed Postgres - that is the whole footprint. Flag state and configuration live in Postgres, so the API node stays stateless and the database is the single source of truth you back up.
It is the pricing story that makes flags worth self-hosting: hosted flag services meter you on monthly active users or per-connection, which scales with your traffic rather than your team. Here nothing is metered per user or connection, and every flag evaluation happens on infrastructure you own.
What you get
- Gradual rollouts, targeting, segments, and A/B experiments
- Per-environment strategies and an approachable admin UI
- Client and server SDKs for every major language
- API tokens for CI and edge evaluation
- All state in managed Postgres - stateless API node
- Apache-2.0 image; flags evaluated on your own infrastructure
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
unleash | flag API + admin UI (:5000) | yes |
db | managed Postgres (flag state) | no |
Before you deploy
INIT_ADMIN_API_TOKENSbootstrap admin/API token, or use the admin login
DATABASE_URLauto-wired to the managed Postgres
Sizing and billing
The Node server is comfortable in 512 MiB; the Hobby plan covers it. Postgres is tiny - flag config, not bulk data.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5 GiB of volumes cost $0.15 per GiB a month ($0.75/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Statsig | Pro | $150/mo | from $150/mo |
| Flagsmith | Start-Up | $40/mo | $40/mo flat, then scales |
| LaunchDarkly | usage-based | Usage-based | ~$10 per connection + per-MAU - scales with your traffic |
Flag services meter MAU or connections; Unleash self-hosted has no MAU or connection meter and evaluates flags on your own infrastructure. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
What does this save vs LaunchDarkly or Flagsmith?
LaunchDarkly bills usage-based (per connection plus per-MAU charges), Flagsmith’s Start-Up plan is a fixed monthly subscription, and Statsig Pro is a paid tier. Unleash self-hosted has no MAU or connection metering, no matter how much traffic evaluates your flags.
Is the self-hosted version crippled compared to the cloud one?
The open-source server covers flags, strategies, environments, segments, and the SDKs. Some enterprise governance features are paid, but the core flagging that most teams need is fully open and shipped here.
Where are flags evaluated?
SDKs fetch flag configuration from your Unleash server and evaluate locally in your app, so user data never leaves your infrastructure - a meaningful difference from sending every evaluation context to a third party.