Skip to content
Distr
Book DemoStart free trialLogin

Self-Hosting Distr

While the easiest way to use Distr is to use our hosted offering, self-hosting is also an option. The free and open source Community Edition is a good way to try Distr locally on your own machine.

Distr comes as a statically compiled Go binary packaged as a container image and has few dependencies:

  • A PostgreSQL 18+ database
  • Loki for log processing
  • Two S3 compatible object storage buckets for registry blobs and log chunks

Before you get started, review the System Requirements to make sure your environment is sized correctly.

See the Docker Compose and Kubernetes deployment options, or find out more about the inner workings of Distr at github.com/distr-sh/distr.

Whichever way you deploy it, Distr is configured entirely through environment variables, in the .env file next to the Compose file or under distr.env in the Helm values. Only DATABASE_URL, JWT_SECRET, DATABASE_ENCRYPTION_KEY, DISTR_HOST and LOKI_URL are needed to start it. Everything else either has a default or belongs to a feature you turn on, such as the OCI registry, OIDC sign-in, outgoing mail, custom domains or the maintenance jobs.

The Configuration Reference lists every variable, grouped by area, and is the place to look up what a setting does and when it is required.

Distr itself is licensed under the Apache License 2.0. Depending on the Compose stack and the Helm values, a deployment can also run PostgreSQL, RustFS, Loki and Caddy next to it, each as an unmodified image and as a separate program: Distr talks to PostgreSQL, RustFS and Loki over the network, and Caddy is a reverse proxy in front of Distr. Their licenses apply to them alone.

Grafana Loki is licensed under the GNU Affero General Public License v3 (AGPL-3.0-only), with the exceptions listed in Loki’s licensing guide. Distr neither includes nor modifies Loki: the stacks pull the official grafana/loki image, which runs as a program of its own, so the AGPL applies to Loki alone, and its clause on offering software over a network concerns modified versions only. A Loki instance that you run yourself is licensed under the AGPL as well. To keep Loki out of your stack, point LOKI_URL and the LOKI_* authentication variables at a Loki that is operated separately or at a hosted Loki-compatible service, and set loki.enabled to false in the Helm chart or remove the loki service and the loki entry under depends_on of the distr service from the Compose stack.

Every bundled component, Go module and npm package is listed with its license in THIRD_PARTY_LICENSES.md, and the attribution notices those licenses require are collected in NOTICE. The Distr and Distr Controller images contain NOTICE and Distr’s LICENSE in /usr/share/doc/distr/, and the Distr image also contains the full license texts of the Go modules and npm packages in /usr/share/doc/distr/third-party-licenses.txt.

We use semantic versioning for the releases of Distr, the Distr Controllers and the Distr SDKs.

See the changelog for a list of all releases and the changes they include.

Every plan can also be self-hosted, with the same feature set as on Distr Cloud (see Choosing a Plan). Paid plans run the Distr Enterprise image, which unlocks the plan its license key was issued for, so get in touch if you are interested. How to obtain the image and where to put the license key is described for Docker Compose and for the Helm chart.

Reference setups for a paid plan ship with the repository, as Compose stacks under deploy/docker and as Helm values files under deploy/charts/distr/examples. One of each runs everything on a single VM or cluster, and two run Distr against a managed database and managed object storage on AWS or GCP. The Docker Compose and Kubernetes pages walk through both clouds.