Install Tursio
Where: Your server: a VM or Kubernetes cluster you control
Who can use it: An IT admin with SSH and sudo access to the VM, or kubectl access to the cluster
Tursio runs as a set of Docker containers inside your security boundary: the portal, an internal PostgreSQL database, and an nginx web server in front of the portal. Your data stays in your databases, and Azure provides identity (Entra), AI services (Microsoft Foundry), and optional data governance (Purview). This page shows how to install Tursio on a VM with Docker Compose, on an AKS cluster, or on an Azure VM through the Tursio Agent extension.
Tursio on your VM, with Azure for identity, AI, and governance.
Choose how to install
Pick the option that fits your environment:
| Option | Use it when | What you get from Tursio |
|---|---|---|
| Docker Compose | Most installs: one VM you manage. | The image tarball. |
| Azure Kubernetes Service (AKS) | You run Kubernetes on Azure. | The image tarball and the Kubernetes manifests. |
| Azure VM | You want Azure to set up the VM for you. | A license key. |
| Hosted by Tursio | You want Tursio to host it. | A dedicated environment. |
Before you start
Your server needs:
- CPU: 4 cores (x86_64)
- Memory: at least 8 GB RAM
- Storage: at least 20 GB free disk space
- Operating system: Ubuntu 24.04 LTS (recommended), or Windows 10/11 with Docker Desktop (WSL2 backend) for Docker Compose installs
You also need:
- Docker with Docker Compose: the installation guide for Ubuntu, or Docker Desktop with WSL2 on Windows.
- curl or wget, to download the image.
- unzip, to extract the AKS manifests.
- kubectl, for AKS only (install guide).
- Azure CLI, for Azure VM or AKS installs (install guide).
Docker Compose
- Request the image for Docker Compose from the Tursio installer page. Tursio shares a download link for the image tarball.
-
Download the tarball with curl or wget.
Windows (PowerShell)
Use
curl.exe. Plaincurlis an alias forInvoke-WebRequestand doesn't take the same flags. -
Load the image into Docker:
-
Find the image name and tag with
docker image ls. - Check
compose.yaml. The portal image name and tag must match the image you loaded. Check the environment variables, and change the PostgreSQL settings if you use your own PostgreSQL. See What compose.yaml runs below. -
Start Tursio from the folder that holds
compose.yaml:The database starts first. A one-time init container copies Tursio's starter files to the data volume. The portal starts when the database is healthy and the init container has finished.
-
Check the containers. The database shows Healthy and the portal shows Started.
docker compose up output after a first start. -
Open port 80 (and 443 for HTTPS) to your internal network. On a cloud VM, limit the source to the IP addresses of your users.
- Open the portal at the VM's address, for example
http://<vm-ip>.
nginx serves the portal on ports 80 and 443 and forwards requests to the portal on port 8080. To serve Tursio over HTTPS, see Enable HTTPS.
What compose.yaml runs
| Service | What it does | Host ports |
|---|---|---|
tursio-singleportal-database |
Internal PostgreSQL 16 with the pgvector extension (tensorchord/pgvecto-rs image). Stores Tursio's data in the tursio-singleportal-database-volume volume. |
5432 |
tursio-singleportal-data-init |
Runs once at start. Copies starter files to the tursio-data volume without overwriting your files, and refreshes config.ini (it keeps a dated backup of the old one). |
none |
tursio-singleportal-portal |
The Tursio portal. Reads and writes the tursio-data volume at /opt/tursio-data/. |
8080 |
tursio-singleportal-nginx |
Web server in front of the portal. Uses HTTPS when it finds a valid certificate and key, and HTTP otherwise. With HTTPS, it redirects port 80 to 443. | 80, 443 |
All services restart on their own after a reboot or a crash (restart: always), except the init container.
Environment variables
Set these in the shared environment block at the top of compose.yaml. Both the database and the portal read it.
| Variable | Default in compose.yaml |
What it does |
|---|---|---|
POSTGRES_USER |
tursio |
User for the internal PostgreSQL. |
POSTGRES_PASSWORD |
tursio |
Password for the internal PostgreSQL. Change it before the first start: PostgreSQL sets it only when it creates the database volume. |
POSTGRES_URL |
tursio-singleportal-database |
Host name of the PostgreSQL server. Change it to use your own PostgreSQL, which must have the pgvector extension. |
POSTGRES_DATABASE |
postgres |
Database name. |
LOCAL_STORAGE_ROOT |
/opt/tursio-data/ |
Folder in the portal container where Tursio keeps its files. It is the tursio-data volume. |
ADMIN_KEY |
a key | The admin license key from Tursio. |
CUSTOMER_NAME |
default-customer |
Name of your deployment. Keep the default unless Tursio gives you a value. |
ENABLE_AUTH_AGENT |
True |
Shows the Authorization Agent section in Settings › Agents. When the variable is missing, the section is hidden. See Agents. |
ENABLE_USER_GUIDE |
true |
Shows the guided tour on the home page. Set it to false to hide the tour. |
FLASK_DEBUG |
0 |
Keep it at 0. |
nginx reads two more variables from your shell when you run docker compose:
| Variable | What it does |
|---|---|
UI_CERT_FILE |
Path on the VM to your TLS certificate (cert.pem). |
UI_KEY_FILE |
Path on the VM to the certificate's private key (key.pem). |
When both point to valid files, nginx serves HTTPS. See Enable HTTPS.
Azure Kubernetes Service (AKS)
Access required
- Azure CLI installed and signed in
- kubectl pointing at the target cluster
- Docker on a machine that can reach the cluster's image registry
- Permission to create resource groups and AKS clusters in your Azure subscription
- Request the image for an AKS cluster from the Tursio installer page. Tursio shares download links for the image tarball and the Kubernetes manifests.
- Download and unzip the files with curl or wget and unzip.
- Load the image with
docker load -i <path-to-image-tarball>, find its name and tag withdocker image ls, and push it to a registry your cluster can pull from. - Check
deployment-portal.yaml. The image name and tag must match your image. Check the environment variables, and change the PostgreSQL settings if you use your own PostgreSQL. -
Apply the manifests from the folder that holds them:
-
Check the pods with
kubectl get pods. Thetursio-singleportal-databaseandtursio-singleportal-portalpods show Running. - Find the portal address with
kubectl get svc. Thetursio-singleportal-portalservice is a load balancer. Open its EXTERNAL-IP on port 8080, for examplehttp://<external-ip>:8080.
AKS prerequisites
- An Azure subscription with permission to create resource groups, provision AKS clusters, and assign roles (if you use a private registry).
- Azure CLI and kubectl.
-
Registry access. If you keep images in Azure Container Registry (ACR), attach it to the cluster so the cluster can pull private images:
-
PostgreSQL with pgvector. Tursio uses pgvector for vector search. The manifests use the public pgvecto-rs image. If you use your own PostgreSQL image, it must include the pgvector extension.
What the manifests create
| Manifest | What it creates |
|---|---|
deployment-database.yaml, service-database.yaml |
The internal PostgreSQL with pgvector, reachable in the cluster on port 5432. |
pvc-database.yaml |
A 5 Gi volume for the database. |
pvc-tursio-data.yaml |
A 10 Gi volume for Tursio's files, mounted at /opt/tursio-data. |
deployment-portal.yaml |
The portal. An init container copies Tursio's starter files to the data volume without overwriting your files. The portal requests 2 CPUs and 1 GiB of memory, with limits of 4 CPUs and 3 GiB. |
service-portal.yaml |
A load balancer for the portal on port 8080. |
configmap-version.yaml |
The Tursio version. |
The portal reads the same environment variables as Docker Compose. See Environment variables under Docker Compose. In deployment-portal.yaml, ENABLE_AUTH_AGENT isn't set, so the Authorization Agent section is hidden. Add it with the value "True" to show it.
Azure VM
The Tursio Agent extension sets up Tursio on a new Azure VM. You need a license key from Tursio.
Create the VM
- Open Create a virtual machine in the Azure portal.
- Pick your subscription, resource group, and region. Supported regions include Central US EUAP, East US EUAP, and West Central US.
-
Pick Ubuntu 24.04 as the image.
Use Ubuntu 24.04
Ubuntu 22.04 has GLIBC issues that stop the Tursio binary from running.
The Basics tab of Create a virtual machine. -
Go to the Advanced tab. Under Extensions, select Select an extension to install.
-
Select the Tursio Agent (listed as Tursio Agent for Database Search), then select Next and Create.
Pick Tursio Agent for Database Search. -
Paste the Docker install script into Custom data, on the same Advanced tab. The script installs Docker Engine when the VM first starts. See Custom data script below.
The Advanced tab with the extension and the Custom data script. -
Select Create. Azure asks you to download an SSH private key. Keep it safe: you need it to sign in to the VM.
Custom data script
Paste this into Custom data on the Advanced tab:
#cloud-config
runcmd:
- |
#!/bin/bash
set -e
echo "Starting Docker Engine installation on Ubuntu..."
# Uninstall conflicting Docker packages
echo "Removing conflicting Docker packages if any..."
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do
if dpkg -l | grep -qw "$pkg"; then
sudo apt-get remove -y "$pkg"
fi
done
# Update package index and install prerequisites
echo "Updating package index and installing prerequisites..."
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
# Setup Docker official GPG key and repository
echo "Setting up Docker GPG key and repository..."
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
| sudo tee /etc/apt/keyrings/docker.asc > /dev/null
sudo chmod a+r /etc/apt/keyrings/docker.asc
UBUNTU_CODENAME=$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
echo "Adding Docker repository for Ubuntu $UBUNTU_CODENAME"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $UBUNTU_CODENAME stable" \
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update package index again
echo "Updating package index for Docker packages..."
sudo apt-get update
# Install Docker Engine and components
echo "Installing Docker Engine and related packages..."
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Enable and start Docker service
echo "Enabling and starting Docker service..."
sudo systemctl enable docker
sudo systemctl start docker
# Verify Docker installation
echo "Verifying Docker installation..."
sudo docker run --rm hello-world
echo "Docker Engine installation completed successfully!"
echo "Tip: To run Docker without 'sudo', add your user to the docker group:"
echo " sudo groupadd docker"
echo " sudo usermod -aG docker \$USER"
echo "Log out and back in for group changes to take effect."
Connect to the VM
- Open the VM's Overview page in the Azure portal when the VM is ready.
- Select Connect to see the SSH command.
-
Run the command with the key you downloaded:
The Connect page shows the SSH command for your VM.
Activate Tursio
-
Run the activation command on the VM, with your license key and the Tursio version:
Tursio downloads and installs its images and files.
License key
Contact Tursio for a license key. The portal warns admins at sign-in when the key expires within 7 days.
Open the portal
- Open the VM's Networking section in the Azure portal.
-
Add an inbound port rule for port 80. Set the source to your own IP address or range.
An inbound rule named portal allows port 80. -
Open the VM's public IP address on port 80 in a browser, for example
http://<vm-ip>. The Tursio sign-in page opens.
Hosted by Tursio
In the cloud model, Tursio manages every component for you, including the AI service and the portal, in a dedicated single-tenant environment. You can still bring your own LLM keys. Contact Tursio to get started.
After you install
- Sign in and follow the Quickstart to connect a database and ask your first question.
- Set up agents (AI, Authorization, API, MCP) in Agents.
- Upgrade, back up, or turn on HTTPS with Upgrade and maintain.
- Bring Tursio into your own application with the Search API.
Tips and limits
- Open only the ports users need. Compose also publishes the portal on 8080 and PostgreSQL on 5432 on the VM. Users only need 80 and 443.
- Your data lives in two Docker volumes:
tursio-singleportal-database-volume(PostgreSQL) andtursio-data(Tursio's files). Removing them deletes your Tursio setup. Back them up before an upgrade. See Back up and restore. - Long requests go through nginx, which waits up to 900 seconds for the portal.
- The internal database must be PostgreSQL with the pgvector extension, whether you use the bundled one or your own. To use your own, set
POSTGRES_URL,POSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DATABASEto your server. - The MCP server runs in your environment too. It lets AI assistants such as Teams, Copilot, Claude, and ChatGPT query Tursio. To set it up, see MCP server.