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.
| Component | Image | Role |
|---|---|---|
| Frontend | ghcr.io/victorzkov/mislata-frontend | The 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. |
| API | ghcr.io/victorzkov/mislata-webapi | ASP.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 generator | ghcr.io/victorzkov/mislata-document-generator | Python service on port 9091, called only by the API. It does no authentication, so it must stay internal. |
| Document export worker | ghcr.io/victorzkov/mislata-document-export | Builds 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 pgvector | pgvector/pgvector:pg16 (bundled) or your server | All application data: organisations, chats, document text and embeddings, connector tokens, the audit trail and the encryption keys of stored secrets. |
| Redis | redis:7-alpine (Compose), Bitnami Redis (Helm) or your server | Cache, rate limits, locks and the SignalR backplane between API replicas. |
| SearXNG | searxng/searxng | Meta search engine for the web search tool of the chat. Internal only. |
| Object storage | A local volume, an S3-compatible store or Azure Blob Storage | Uploaded 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,/v1and/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) andlatest. Pin an exact tag. - Helm chart:
oci://ghcr.io/victorzkov/charts/mislata-ai, version0.2.64. The chart version has nov; 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.
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.comRepeat the first command for mislata-frontend, mislata-document-generator and mislata-document-export.
§ 02
Sizing
One server (Docker Compose)
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 4 vCPU, x86-64 | 8 vCPU |
| Memory | 8 GB | 16 GB |
| Disk | 50 GB SSD | 200 GB SSD when many documents are indexed |
| Software | Linux, Docker Engine 24 or later, Docker Compose 2.24 or later | A 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.
| Workload | Requests | Limits | Storage |
|---|---|---|---|
API (webapi) | 250m CPU, 512 MiB | 2 CPU, 2 GiB | Uploads volume only with local storage (50 GiB by default) |
| Frontend | 50m CPU, 64 MiB | 500m CPU, 256 MiB | — |
| Document generator | 100m CPU, 256 MiB | 1 CPU, 1 GiB | — |
| Document export worker | 100m CPU, 256 MiB | 1 CPU, 1536 MiB | — |
| SearXNG | 50m CPU, 128 MiB | 256 MiB | — |
| PostgreSQL (bundled) | 250m CPU, 512 MiB | 2 GiB | 20 GiB volume |
| Redis (bundled) | 50m CPU, 64 MiB | 256 MiB | 8 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 Compose | Kubernetes with Helm | Azure AKS landing zone | |
|---|---|---|---|
| Runs on | One Linux server with Docker | Any Kubernetes 1.27+ cluster with an ingress controller | AKS with workload identity, Key Vault and an internal ingress |
| PostgreSQL and Redis | Bundled containers, or yours with an override file | Bundled subcharts, or yours (externalPostgresql, externalRedis) | Azure Database for PostgreSQL Flexible Server and Azure Cache for Redis |
| Object storage | Local volume, bundled MinIO, your S3 store or Azure Blob | S3-compatible store, Azure Blob, or a volume | Azure Blob with the workload identity |
| Secrets | .env file on the server | Kubernetes Secrets (generated or yours) | Azure Key Vault through the Secrets Store CSI driver |
| HTTPS | A reverse proxy on the server, for example Caddy | Ingress with cert-manager or your certificate | Azure Front Door, optionally Azure API Management |
| Choose it when | A pilot, or a small organisation without Kubernetes | Your platform team runs Kubernetes | Your 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.
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.Under Redirect URI choose the platform Single-page application (SPA) and enter
https://ai.example.com/callback. Register.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.On Overview, copy the Application (client) ID and the Directory (tenant) ID.
In Expose an API, set the Application ID URI (accept
api://<client-id>) and add a scope namedaccess_as_user, Who can consent: Admins and users. Sign-in requestsapi://<client-id>/access_as_user, so the access token is issued for Mislata and not for Microsoft Graph.In Certificates & secrets, create a client secret and copy its Value (not the secret ID). Note when it expires.
In API permissions, add the Microsoft Graph delegated permissions
openid,profile,emailandoffline_access, then Grant admin consent. In Token configuration, add the optional ID token claimsemailandupn.Optional: in App roles, create a role with the value
platform:superadminfor 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
| From | To | Why |
|---|---|---|
| Users | Your address on port 443 | Web app, API, real-time updates (WebSockets or server-sent events) |
| Install host or cluster | ghcr.io and Docker Hub | Image pulls, unless you mirror the images into your registry |
| API | Your model endpoint | Chat, embeddings, document indexing |
| API | login.microsoftonline.com, graph.microsoft.com | Sign-in validation, Microsoft Graph features and connectors |
| API | https://api.mislata.eu | Licence trial, purchase and key renewal. Without this access, keys are pasted by hand. |
| API | Your SMTP relay | Email, if configured |
| SearXNG | Public search engines | Web search in the chat. Turn SearXNG off if this is not allowed. |
| Microsoft, Google, Slack | Your address on port 443 | Change notifications for Outlook, Microsoft Teams, Gmail and Slack. Only when those connectors are used. |
§ 05
Next steps
- Install with Docker ComposeOne Linux server.
- Install with HelmAny Kubernetes cluster.
- Install in AzureAKS landing zone with managed services.
- Configure after the installSetup wizard, administrators, models, email, connectors, modules, users and the licence.