Self-host Unleash (Postgres) with Levelrail

An open-source feature flag platform with gradual rollouts, A/B testing, and a permission model.

  • Memory512 MiB
  • Archarm64
  • Services2

How to self-host Unleash (Postgres)

  1. Pull the images

    2 images are pulled on your server.

    Show images
    • postgres:16-alpine
    • unleashorg/unleash-server:latest
  2. Create the app

    2 services start in a single Compose app, with 1 named volume mount for your data, on port 4242.

  3. Fill in the secrets

    3 secrets are generated and stored encrypted, 5 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Unleash (Postgres) requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 image published
Ports
4242
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
not yet recorded
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 4242 on the host, so open them in the VPS firewall only if you want that.
  • Review. Image is not pinned to a version tag, so a redeploy can pull different code (unleashorg/unleash-server:latest).

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Unleash (Postgres). New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Unleash (Postgres) docs page.

Deploy Unleash (Postgres) your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Unleash (Postgres) from the CLI

levelrail-cli templates deploy unleash-postgres --name my-unleash-postgres

Deploy Unleash (Postgres) with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/unleash-postgres/deploy

Unleash (Postgres) configuration

Unleash (Postgres) services

ServiceImagePortsVolumes
postgres postgres:16-alpine none unleash_postgres_data -> /var/lib/postgresql/data
unleash unleashorg/unleash-server:latest 4242 none

Unleash (Postgres) environment variables

VariableServiceValue
POSTGRES_DB postgres Preset by the template
POSTGRES_PASSWORD postgres Generated at deploy
POSTGRES_USER postgres Preset by the template
DATABASE_SSL unleash Preset by the template
DATABASE_URL unleash Generated at deploy
LOG_LEVEL unleash Preset by the template
UNLEASH_DEFAULT_ADMIN_PASSWORD unleash Generated at deploy
UNLEASH_URL unleash Preset by the template

Ports and volumes

Ports
4242
Volumes
1 named mount: unleash_postgres_data -> /var/lib/postgresql/data

Unleash (Postgres) FAQ

How much memory does Unleash (Postgres) need?

The catalog lists about 512 MiB of memory for Unleash (Postgres) across its 2 services.

Does Unleash (Postgres) run on arm64?

For Unleash (Postgres), an arm64 image is published; amd64 is image published.

Does Unleash (Postgres) need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Unleash (Postgres) bundle?

The template includes Postgres, running as its own service.

Which ports does Unleash (Postgres) use?

Unleash (Postgres) listens on port 4242 inside the stack.

Where does Unleash (Postgres) keep its data?

In a named volume: unleash_postgres_data mounted at /var/lib/postgresql/data.

Can I deploy Unleash (Postgres) on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Unleash (Postgres), so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, unleashorg/unleash-server:latest is what you deploy there.

levelrail-cli templates deploy unleash-postgres --name my-unleash-postgres