Installation guide · release 0.2.64

Install Mislata on your own infrastructure.

Mislata runs in your environment. You install the same signed images on one server with Docker Compose, on a Kubernetes cluster with the Helm chart, or in an Azure landing zone. This page lists what gets installed, how to choose an option and what to prepare before you start.

§ 01

What gets installed

An installation has four Mislata services and four supporting services. The supporting services can be the bundled containers or services you already run.

ComponentImageRole
Frontendghcr.io/victorzkov/mislata-frontendThe web app, served by nginx on container port 8080. With Docker Compose it is the only entry point and forwards /api, /hubs, /v1 and /mcp to the API. With Kubernetes the ingress does that routing.
APIghcr.io/victorzkov/mislata-webapiASP.NET Core API on container port 8080: REST API, SignalR hubs (/hubs), public REST API (/v1), MCP server (/mcp) and the background workers (document indexing, mail and chat sync, schedulers). Applies database migrations when it starts.
Document generatorghcr.io/victorzkov/mislata-document-generatorPython service on port 9091, called only by the API. It does no authentication, so it must stay internal.
Document export workerghcr.io/victorzkov/mislata-document-exportBuilds Word, PDF and PowerPoint files for document exports. It reads a queue in PostgreSQL and needs object storage. It listens on no port.
PostgreSQL 16 with pgvectorpgvector/pgvector:pg16 (bundled) or your serverAll application data: organisations, chats, document text and embeddings, connector tokens, the audit trail and the encryption keys of stored secrets.
Redisredis:7-alpine (Compose), Bitnami Redis (Helm) or your serverCache, rate limits, locks and the SignalR backplane between API replicas.
SearXNGsearxng/searxngMeta search engine for the web search tool of the chat. Internal only.
Object storageA local volume, an S3-compatible store or Azure Blob StorageUploaded documents, exports and profile photos. Exports need an S3-compatible store or Azure Blob Storage.

Traffic paths

  • Browser → your reverse proxy, ingress or edge (TLS) → frontend for the web app; /api, /hubs, /v1 and /mcp → API.
  • API → PostgreSQL, Redis, object storage, document generator and SearXNG, inside your network.
  • API → your model endpoint, Microsoft Entra ID and Microsoft Graph, your SMTP relay, the connector APIs you turn on, and the licence service at https://api.mislata.eu.

Images and signatures

  • Registry: ghcr.io/victorzkov, public, no pull secret. Tags: v0.2.64 (one release), v0.2 (latest patch of the minor release) and latest. Pin an exact tag.
  • Helm chart: oci://ghcr.io/victorzkov/charts/mislata-ai, version 0.2.64. The chart version has no v; the image tags do.
  • Architecture: x86-64 (amd64) only. Nodes and servers must be x86-64.
  • Stable releases of the four images and the chart are signed with cosign (keyless, GitHub OIDC). Each image also carries an SBOM and a provenance attestation.
Verify the signatures
cosign verify ghcr.io/victorzkov/mislata-webapi:v0.2.64 \
  --certificate-identity-regexp '^https://github\.com/victorZKov/(ai-portal|mislata-ai)/\.github/workflows/release-selfhosted\.yml@refs/tags/v.*$' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

cosign verify ghcr.io/victorzkov/charts/mislata-ai:0.2.64 \
  --certificate-identity-regexp '^https://github\.com/victorZKov/(ai-portal|mislata-ai)/\.github/workflows/release-selfhosted\.yml@refs/tags/v.*$' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Repeat the first command for mislata-frontend, mislata-document-generator and mislata-document-export.

§ 02

Sizing

One server (Docker Compose)

ResourceMinimumRecommended
CPU4 vCPU, x86-648 vCPU
Memory8 GB16 GB
Disk50 GB SSD200 GB SSD when many documents are indexed
SoftwareLinux, Docker Engine 24 or later, Docker Compose 2.24 or laterA current LTS distribution

Kubernetes (Helm chart defaults)

Kubernetes 1.27 or later and Helm 3.13 or later. The chart sets these requests and limits; change them in the values file.

WorkloadRequestsLimitsStorage
API (webapi)250m CPU, 512 MiB2 CPU, 2 GiBUploads volume only with local storage (50 GiB by default)
Frontend50m CPU, 64 MiB500m CPU, 256 MiB—
Document generator100m CPU, 256 MiB1 CPU, 1 GiB—
Document export worker100m CPU, 256 MiB1 CPU, 1536 MiB—
SearXNG50m CPU, 128 MiB256 MiB—
PostgreSQL (bundled)250m CPU, 512 MiB2 GiB20 GiB volume
Redis (bundled)50m CPU, 64 MiB256 MiB8 GiB volume

For many users, move the background workers into their own Deployment and scale the API (see Scaling the API and the workers).

§ 03

Choose an install option

Docker ComposeKubernetes with HelmAzure AKS landing zone
Runs onOne Linux server with DockerAny Kubernetes 1.27+ cluster with an ingress controllerAKS with workload identity, Key Vault and an internal ingress
PostgreSQL and RedisBundled containers, or yours with an override fileBundled subcharts, or yours (externalPostgresql, externalRedis)Azure Database for PostgreSQL Flexible Server and Azure Cache for Redis
Object storageLocal volume, bundled MinIO, your S3 store or Azure BlobS3-compatible store, Azure Blob, or a volumeAzure Blob with the workload identity
Secrets.env file on the serverKubernetes Secrets (generated or yours)Azure Key Vault through the Secrets Store CSI driver
HTTPSA reverse proxy on the server, for example CaddyIngress with cert-manager or your certificateAzure Front Door, optionally Azure API Management
Choose it whenA pilot, or a small organisation without KubernetesYour platform team runs KubernetesYour Azure platform team provides the landing zone
  • Docker ComposeInstaller script, .env, HTTPS with Caddy, your own database, upgrades and backups.
  • Kubernetes with HelmChart install from the OCI registry, values, ingress, external services, backups, upgrades.
  • Azure AKS landing zoneAzure resources and roles, workload identity, Key Vault, the example values file.

§ 04

What you prepare

A DNS name and HTTPS

Pick the address users will open, for example https://ai.example.com, and point its DNS record at your server, load balancer or edge. Sign-in with Microsoft Entra ID needs HTTPS (only localhost works over plain HTTP). With Docker Compose, Caddy can obtain a Let’s Encrypt certificate; with Kubernetes, use cert-manager or your own certificate.

A Microsoft Entra ID app registration

A self-hosted installation signs users in with Microsoft Entra ID. The setup wizard asks for a tenant ID, a client ID and a client secret. Create the app registration before you start; replace ai.example.com with your address.

  1. In the Entra admin center open App registrations → New registration. Enter a name such as Mislata. Under Supported account types choose Accounts in this organizational directory only.

  2. Under Redirect URI choose the platform Single-page application (SPA) and enter https://ai.example.com/callback. Register.

  3. In Authentication, add https://ai.example.com/ as a second redirect URI of the same SPA platform. It is the address users return to after signing out.

  4. On Overview, copy the Application (client) ID and the Directory (tenant) ID.

  5. In Expose an API, set the Application ID URI (accept api://<client-id>) and add a scope named access_as_user, Who can consent: Admins and users. Sign-in requests api://<client-id>/access_as_user, so the access token is issued for Mislata and not for Microsoft Graph.

  6. In Certificates & secrets, create a client secret and copy its Value (not the secret ID). Note when it expires.

  7. In API permissions, add the Microsoft Graph delegated permissions openid, profile, email and offline_access, then Grant admin consent. In Token configuration, add the optional ID token claims email and upn.

  8. Optional: in App roles, create a role with the value platform:superadmin for users, and assign it to yourself in Enterprise applications → the app → Users and groups. It gives access to the platform console (model catalog, organisation modules). See Administrators.

More Microsoft Graph permissions are needed only for the features that use them: creating REST API and MCP apps, inviting guests, and the SharePoint, OneDrive, Outlook and Microsoft Teams connectors. They are listed in Configure.

A model endpoint

Mislata does not include a language model. You need an endpoint you have approved: Azure AI Foundry or Azure OpenAI (with an API key or with Microsoft Entra ID), OpenAI, Anthropic, or any OpenAI-compatible endpoint. Plan for a chat model and an embedding model; Mislata asks the embedding model for 1024-dimension vectors. Models are added in the application after the install, not in the install files.

An SMTP relay (optional)

Used for invitations, guest sign-in links and digests. Without it the invitations are created but no email is sent; you send the address to people yourself.

Object storage

Choose where files go: a local volume (simplest; document export is not available), an S3-compatible store (MinIO, Amazon S3 and others) or Azure Blob Storage (connection string, or account URL with a managed identity). With an S3 store, create the buckets first.

Bundled or your own database

The bundled PostgreSQL and Redis are suitable for a pilot and for small installations. For production you can use managed services: any PostgreSQL 16 or later with the vector extension (Azure Database for PostgreSQL Flexible Server, Amazon RDS, your own server) and any Redis (Azure Cache for Redis on TLS port 6380, your own). The database user must be able to create tables, because migrations run as that user. Details are on each option page.

Network access

FromToWhy
UsersYour address on port 443Web app, API, real-time updates (WebSockets or server-sent events)
Install host or clusterghcr.io and Docker HubImage pulls, unless you mirror the images into your registry
APIYour model endpointChat, embeddings, document indexing
APIlogin.microsoftonline.com, graph.microsoft.comSign-in validation, Microsoft Graph features and connectors
APIhttps://api.mislata.euLicence trial, purchase and key renewal. Without this access, keys are pasted by hand.
APIYour SMTP relayEmail, if configured
SearXNGPublic search enginesWeb search in the chat. Turn SearXNG off if this is not allowed.
Microsoft, Google, SlackYour address on port 443Change notifications for Outlook, Microsoft Teams, Gmail and Slack. Only when those connectors are used.

§ 05

Next steps