You are viewing docs for v0.23.
The latest release is v0.25.0.

Self-hosting overview

Run Cohorly on your own server with Docker Compose: what the stack contains, what you receive under contract, and the order to follow from requirements to upgrades and backups.

Cohorly can run on a server you control. One Docker Compose file starts PostgreSQL, the API, the error worker, the dashboard and a Caddy proxy that serves everything on a single domain with automatic HTTPS. Your events, user profiles and reports stay in your own database.

This guide is for the infrastructure team that installs and operates it. It starts from an empty Linux host and ends with an instance you can upgrade, back up and monitor.

What you receive

Self-hosting is delivered under a contract. With the contract you receive:

  • The container images of the server and the dashboard, through a registry credential or an offline package. See Getting the images.
  • A license key that the server checks when it starts. See License key.

The images do not run without a license key, and they are not published to a public registry. The Cohorly SDKs and the CLI are open source (Apache-2.0); the server and the dashboard are not.

What runs on your host

ServiceWhat it doesReachable from outside
caddyTerminates HTTPS, gets and renews the certificate, sends API paths to server and everything else to dashboard.Ports 80 and 443
dashboardThe Cohorly web app.Only through caddy
serverThe API: event ingestion, queries, accounts, MCP server. It runs database migrations when it starts.Only through caddy
error-workerTurns captured exceptions into error issues. Same image as server, no port.No
postgresThe database.No
alloy (optional)Ships metrics and logs to Grafana Cloud. Off unless you turn on the monitoring profile.No

The dashboard talks to the API on the same domain, so there is nothing to configure between them and no rebuild when the domain changes.

Follow the guide in order

Requirements and sizing
Host, ports, domain, and CPU, memory and disk by monthly event volume.
Images and license key
How the images and the key reach you, how to load them, what the server refuses.
Install
From an empty directory to a running instance and your first account.
Operator settings
The variables worth knowing, plus SSO, e-mail, blob storage and two-factor.
Upgrade
Move to a new version, and what going back means.
Backup and restore
Back up PostgreSQL and blobs, and prove the restore works.
Monitoring
Health checks, Prometheus metrics, logs.
What leaves your network
Every outbound connection, and which settings switch each one on.

What this guide does not cover

  • Kubernetes and Helm. The supported shape is one host running Docker Compose.
  • High availability. There is one database and one API container.
PreviousEvent properties
NextRequirements and sizing