> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Linux VM (Docker) + Confluent Cloud

> Run the Sariva AI Platform as a Docker container on a plain Linux VM and connect existing Confluent Cloud clusters — no Kubernetes anywhere.

This is the supported deployment path for running Sariva **without Kubernetes**: one Docker container on a Linux host — an EC2 instance, an on-prem VM, any cloud VM — connecting to **existing** Confluent Cloud clusters. Every command on this page has been run end to end on a real Amazon Linux 2023 EC2 host, including an in-place upgrade.

| Dimension | Selection |
| - | - |
| Cloud + Sariva deployment | Linux VM (Docker) — the host can live anywhere |
| Kafka flavor | Confluent Cloud (existing clusters — this path provisions nothing) |
| Git host | GitHub (change-delivery repo optional) |
| CI/CD applier | Not used — answer **No**; no Terraform scaffold is emitted on this path |
| Terraform state backend | None — nothing to apply |
| LLM backend | Claude API, Ollama (compose sidecar), or AWS Bedrock (host's ambient AWS credentials) |
| Secret provider | `.env` file for platform secrets; `file://` / `env://` references for Kafka credentials |
| Collaboration | ONE chat surface — Slack or MS Teams — or none (Teams needs public HTTPS — [section 8](#8-teams-only-expose-the-messaging-endpoint-over-https); a second surface is a hand edit — [section 11](#11-add-a-second-chat-surface-later)); paging optional — PagerDuty or xMatters, one per install |

ⓘINFO

**What this path is.** The wizard emits `docker-compose.yml`, `.env`, `config/customer_config.yaml`, and a `secrets/` directory (mounted read-only at `/app/secrets` for per-cluster credential files) — no `values.yaml`, no `setup-secret.sh`, no GitOps scaffold, nothing that needs `kubectl` or Helm. You connect Confluent Cloud clusters that already exist; infrastructure provisioning through the GitOps scaffold stays on the Kubernetes paths.

✓SUCCESS

**Read-only against your Kafka by construction.** The per-cluster Kafka key Sariva uses carries exactly four describe-only ACLs — `Cluster:DESCRIBE`, `Topic:DESCRIBE`, `Topic:DESCRIBE_CONFIGS`, `Group:DESCRIBE` — with **no data-plane READ**: Sariva can never consume your messages. The org-level key is `MetricsViewer` only. Details: [Minimum read-only ACLs](https://sariva.mintlify.site/prerequisites/confluent-cloud/minimum-acls.md).

## Before you start

Prepare these external accounts and values — each card matches a wizard prompt:

> [card] [Confluent Cloud account access](https://sariva.mintlify.site/prerequisites/confluent-cloud/overview.md)
>
> The org-scoped `MetricsViewer` API key, plus a describe-only Kafka API key per cluster you'll connect.

> [card] [LLM backend](https://sariva.mintlify.site/prerequisites/llm-backend.md)
>
> Choose Claude API, Ollama, or Bedrock. Prepares **Wizard Step 3 — LLM backend**.

> [card] [Slack](https://sariva.mintlify.site/prerequisites/slack/overview.md)
>
> Optional — one chat surface per install: Slack, Teams, or none. Slack Socket Mode needs only outbound access.

> [card] [Microsoft Teams](https://sariva.mintlify.site/prerequisites/teams/overview.md)
>
> Optional. Needs a Microsoft 365 tenant with Teams, a bot registration, the app installed in Teams, and the public-HTTPS endpoint in section 8.

> [card] [Paging: PagerDuty](https://sariva.mintlify.site/prerequisites/paging/pagerduty.md)
>
> Optional. One paging provider per install. Prepares **Wizard Step 6 — Paging**.

> [card] [Paging: xMatters](https://sariva.mintlify.site/prerequisites/paging/xmatters.md)
>
> Optional. The other supported provider — one HTTP trigger, API-key auth, free plan. Prepares **Wizard Step 6 — Paging**.

A GitHub change-delivery repository ([GitHub repository and Sariva token](https://sariva.mintlify.site/prerequisites/github.md)) is optional on this path — configure it if you want Sariva to open change pull requests.

## 1. Prepare the host

### Address, DNS, and the security group (EC2)

Three things on the AWS side, all of which bit the reference install:

* **Attach an Elastic IP.** Without one, the public address changes on **every stop/start** — the reference host went through four addresses in a week before an EIP was attached.
* **DNS (Teams only):** an A record for your hostname pointing at the EIP. If a CDN proxies your DNS (Cloudflare), the record must be **DNS-only / unproxied** — the TLS terminator on this host has to hold the certificate itself, and a proxied record puts the CDN's certificate in front of it instead.
* **Security group:**

| Port | Source | Why |
| - | - | - |
| 22 | Your IP | SSH. A "My IP" rule goes **stale when your address changes** — the symptom is an SSH timeout against a Running instance with 3/3 checks. Re-pin the rule when that happens. |
| 443 | `0.0.0.0/0` — **only if Teams is used** | Microsoft's Bot Framework calls inbound to the TLS terminator |
| 8000 | **Not exposed publicly** | The REST API stays private to the VM; you reach it over SSH / localhost |

### Docker Engine and the Compose plugin

```bash theme={null}
sudo dnf install -y docker
sudo systemctl enable --now docker
sudo usermod -aG docker ec2-user
# Log out and back in so the group membership takes effect.
docker --version
```

On **Amazon Linux 2023** the distro repos carry `docker` but **no `docker-compose-plugin` package** — `dnf install docker-compose-plugin` fails with `No match for argument`. Install the plugin by hand into your CLI-plugins directory:

```bash theme={null}
mkdir -p ~/.docker/cli-plugins
curl -sL "https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)" \
  -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
docker compose version
```

`dnf` will not update a hand-installed plugin — repeat the download to upgrade it.

### git (for the wizard's repo step)

If Sariva should write changes into your own Terraform repo, the wizard's change-delivery step asks for a local copy of that repo to scan, and so do `sariva terraform discover` and `sariva terraform adopt`. Making that copy needs `git`, which **Amazon Linux 2023 does not ship** and the Sariva wheel does not install. Install it before you run the wizard:

```bash theme={null}
sudo dnf install -y git
git clone https://github.com/<owner>/<repo>.git ~/<repo>
```

Skip this if you won't configure a change-delivery repo, or if you'll answer the layout questions instead of scanning a copy.

### Outbound reachability

The container needs outbound access to (no inbound is required unless you choose Teams):

| Destination | Port | When |
| - | - | - |
| Confluent Cloud bootstrap (`pkc-….confluent.cloud`) | 9092 | Always |
| Confluent Cloud APIs (`api.confluent.cloud`, `api.telemetry.confluent.cloud`, cluster REST endpoints) | 443 | Always |
| `api.anthropic.com` | 443 | LLM backend = Claude API |
| `slack.com` / `wss://…slack.com` | 443 | Slack selected |
| `smba.trafficmanager.net`, `login.microsoftonline.com`, `login.botframework.com` | 443 | Teams selected (outbound half; honours `HTTPS_PROXY` / `NO_PROXY` — [Teams network](https://sariva.mintlify.site/prerequisites/teams/overview.md#outbound-sariva-calls-microsoft)) |
| `api.github.com` | 443 | Change-delivery repo configured |
| `events.pagerduty.com` | 443 | `PAGING_PROVIDER=pagerduty` |
| `<company>.xmatters.com` | 443 | `PAGING_PROVIDER=xmatters` (the host in your trigger URL) |

⚠WARNING

**Egress-proxied networks.** Sariva has no explicit proxy configuration. Some of its HTTP clients (httpx-based: Anthropic, GitHub, Confluent Cloud metrics) honour the standard `HTTPS_PROXY` environment variables by library default, but the Slack client (aiohttp) and the Kafka protocol client (librdkafka) do **not** — Kafka traffic on 9092 cannot traverse an HTTP proxy at all. Plan for direct egress (or a transparent gateway) to the destinations above.

## 2. Install the Sariva CLI

Install the CLI **on your workstation or on the VM itself** — wherever you'll run the wizard: [Install the CLI](https://sariva.mintlify.site/getting-started/install-cli.md). Run the wizard in the directory you will run `docker compose` from.

The wheel requires **Python ≥ 3.10**. On Amazon Linux 2023 the stock `python3` is 3.9, so `pipx install` fails until you install a newer interpreter and point pipx at it:

```bash theme={null}
sudo dnf install -y python3.11
pipx install ./sariva_platform-<VERSION>-py3-none-any.whl --python python3.11
```

⚠WARNING

**Always pass `--python python3.11`, upgrades included.** On a later `pipx install --force` of a newer wheel, `--force` alone drops the interpreter choice and fails with *"requires a different Python: 3.9"*. The upgrade command in [section 10](#10-upgrade-in-place) carries both flags for this reason.

ⓘINFO

**The container has no `sariva` command.** The CLI is a local tool for the wizard and validators; the platform image runs the REST API only. Everything operational goes through the REST API (or Slack/Teams) — there is nothing to `docker exec` into.

## 3. Run the wizard — option 4

```bash theme={null}
sariva setup wizard
```

In **Step 1 — Deployment path**, pick option **4 — Linux VM (Docker)**, then Confluent Cloud and GitHub. There is no CI/CD applier question on this path — nothing is provisioned on a VM, so the wizard doesn't ask.

The VM path skips every Kubernetes- and provisioning-only prompt (cloud region, initial scaffold, Terraform state, CI/CD applier, CI credential source, network topology, pod AWS identity, scaffold output directory). The seven remaining steps, numbered as the wizard prints them:

| Prompt | What it collects |
| - | - |
| Step 2 — Platform identity | Display name, log level/format |
| Step 3 — LLM backend | Claude API, Ollama, or Bedrock |
| Step 4 — **Connect existing clusters** | A loop: alias, bootstrap servers, environment label, auth type, credential reference URI, Confluent env/cluster IDs — repeat per cluster. **Optional** — skip it if no cluster exists yet and register the first one later ([section 7](#7-connect-a-cluster)) |
| Step 5 — Chat surface | One single-select: **Slack / Microsoft Teams / None** — one surface per install. Only the chosen surface's questions follow, and nothing about the other is asked or written to any file. None still completes the wizard — the platform runs REST/CLI-only, with no approval surface and no chat alerts destination. A second surface is a hand edit afterwards ([section 11](#11-add-a-second-chat-surface-later)) |
| Step 6 — Paging | **None / PagerDuty / xMatters** — one per install; xMatters asks for its trigger URL, secrets are `.env` placeholders |
| Step 7 — Change delivery | Optional GitHub `<owner>/<repo>` for change PRs. With a repo set, the wizard asks where a local copy of it is on this machine, to read its Terraform layout. Enter the folder (`~/<repo>` works), press Enter to answer layout questions instead, or type `skip` to do it later with `sariva terraform adopt`. The copy needs `git` on the host ([section 1](#git-for-the-wizards-repo-step)) |

For Step 4's credential reference, the VM-native schemes are `file:///app/secrets/<name>.json` (recommended — the in-container path, see [section 7](#7-connect-a-cluster)) and `env://VAR_NAME` — see [file:// and env:// credential references](https://sariva.mintlify.site/connecting-clusters/file-env.md). The AWS schemes (`arn:aws:secretsmanager:…`, `arn:aws:ssm:…`) also work when the VM has AWS credentials.

## 4. Review what was generated

Four artifacts, in the current directory:

| Artifact | What it is | Commit to git? |
| - | - | - |
| `docker-compose.yml` | The platform service definition | Yes |
| `.env` | Platform secrets — every value a `REPLACE_ME_*` placeholder until you fill it | **Never** |
| `config/customer_config.yaml` | Clusters, channels, platform settings — mounted read-only into the container | Yes (it holds references, not secrets) |
| `secrets/` | Per-cluster credential JSON files go here — mounted read-only at `/app/secrets` | **Never** (the wizard drops a README in it) |

The compose file exactly as the wizard writes it (Claude-API + Teams variant; an Ollama selection adds a `sariva-ollama` sidecar service and model volume; on a Slack or no-chat install the two Teams comment lines under `ports:` are a single `# REST API`; the image tag is stamped with the wizard's own version):

```yaml theme={null}
# =============================================================================
# Sariva AI Platform — VM/Docker compose (generated by `sariva setup wizard`)
# =============================================================================
# Prereqs: fill in .env (same directory), keep config/customer_config.yaml
# next to this file. Then:  docker compose up -d
# Data (SQLite) persists in the named Docker volume `sariva-platform-data`
# across restarts (inspect: docker volume inspect sariva-platform-data).
# Deleting that volume deletes admin keys, audit history, and registered
# clusters.
# =============================================================================

services:

  platform:
    # The Sariva release that emitted this file — wheel and image
    # share one version series. Newer tags:
    #   https://github.com/orgs/sariva-inc/packages
    image: ghcr.io/sariva-inc/sariva-platform:<version>
    container_name: sariva-platform
    ports:
      # REST API — and the MS Teams inbound webhook (/api/teams/messages)
      # rides the same port; Microsoft needs public HTTPS in front of it.
      - "8000:8000"
      # MCP (opt-in via MCP settings) would additionally need:
      #   - "8001:8001"
    env_file:
      - .env
    volumes:
      - sariva-data:/app/data
      - ./config/customer_config.yaml:/app/config/customer_config.yaml:ro
      # Per-cluster credential files (file:// refs). The platform
      # resolves credentials_ref URIs INSIDE this container, so a
      # file:// path must be the in-container path: put creds.json in
      # ./secrets/ on this host and reference it as
      #   file:///app/secrets/creds.json
      # Rotation is silent: overwrite the file, the next read picks
      # it up (no restart).
      - ./secrets:/app/secrets:ro
    healthcheck:
      test: ["CMD", "curl", "-fsS", "--max-time", "5", "http://localhost:8000/api/v1/health"]
      interval: 30s
      timeout: 5s
      start_period: 15s
      retries: 3
    restart: unless-stopped

volumes:
  # A named volume, NOT a ./data bind mount: Docker seeds a fresh named
  # volume from the image's /app/data — owned by the container user
  # (appuser, uid 1000) — so the platform can write its SQLite databases
  # no matter which user ran the wizard. A missing bind-mount directory
  # is created ROOT-owned by Docker: the container cannot write, dies at
  # startup, and restart: unless-stopped turns that into a silent crash
  # loop that `docker compose ps` reports as Started.
  sariva-data:
    name: sariva-platform-data
```

⚠WARNING

**The `sariva-platform-data` volume is the platform's memory.** The SQLite database in the named Docker volume persists across restarts and holds your admin keys, audit history, and registered clusters. Deleting the volume (`docker volume rm sariva-platform-data`, or `docker compose down -v`) loses all three — include it in the VM's backup story (`docker volume inspect sariva-platform-data` shows where it lives on disk).

## 5. Fill the `.env`

Every secret is a `REPLACE_ME_*` placeholder. The two the platform refuses to start without are generated, not copied from anywhere — fill them in place:

```bash theme={null}
sed -i "s|^SARIVA_AUTH_PEPPER=.*|SARIVA_AUTH_PEPPER=$(openssl rand -hex 32)|" .env
sed -i "s|^SARIVA_PLATFORM_API_KEY=.*|SARIVA_PLATFORM_API_KEY=sariva_$(openssl rand -hex 16)|" .env
```

(The admin REST bearer MUST be shaped `sariva_<hex>`.) The rest — the LLM key, the chat-surface tokens, `CC_METRICS_*` — are values you copied from the provider consoles; edit them in with any editor. The full set the wizard emits, by selection:

| Key | Present when |
| - | - |
| `SARIVA_AUTH_PEPPER` | Always — **required**, startup fails without it |
| `SARIVA_PLATFORM_API_KEY` | Always — your admin REST bearer, seeded at startup |
| `LOG_LEVEL` / `LOG_FORMAT` | Always (from Step 2) — see [Logging](https://sariva.mintlify.site/reference/logging.md) |
| `ANTHROPIC_API_KEY` | LLM backend = Claude API |
| `SLACK_BOT_TOKEN` / `SLACK_APP_TOKEN` | Slack selected |
| `TEAMS_APP_ID` / `TEAMS_APP_PASSWORD` / `TEAMS_TENANT_ID` (+ `TEAMS_ALERTS_CHANNEL_ID`, written only if you entered an org alerts channel) | Teams selected — see [Teams prerequisites](https://sariva.mintlify.site/prerequisites/teams/overview.md) |
| `GITHUB_TOKEN` | Change-delivery repo configured |
| `PAGING_PROVIDER` | Always — `none`, `pagerduty` or `xmatters` (written by the wizard) |
| `PAGERDUTY_ROUTING_KEY` | `PAGING_PROVIDER=pagerduty` |
| `XMATTERS_TRIGGER_URL` (written) / `XMATTERS_API_KEY` / `XMATTERS_API_SECRET` | `PAGING_PROVIDER=xmatters` — see [xMatters](https://sariva.mintlify.site/prerequisites/paging/xmatters.md) |
| `CC_METRICS_API_KEY` / `CC_METRICS_API_SECRET` | Always — the org-level `MetricsViewer` key |

`.env` holds real secrets once filled — never commit it, and keep it `chmod 600`.

## 6. Start the platform

```bash theme={null}
docker compose up -d
docker compose ps
```

You should see `sariva-platform` reach `Up (healthy)` after the \~15s start period. Migrations run automatically on startup — there is no separate schema step. Then:

```bash theme={null}
curl -fsS http://localhost:8000/api/v1/health
```

You should get HTTP `200` with a JSON health summary. **The `version` in that payload must equal the image tag in `docker-compose.yml` and your CLI's `sariva --version`** — wheel and image share one version series, and this is the check that you are running what you installed.

Your admin REST bearer is the `SARIVA_PLATFORM_API_KEY` value you set in `.env` — the platform seeds it at startup, so it authenticates immediately. Every CLI command that takes `--api-url http://localhost:8000` reads it from the environment; export it once per shell:

```bash theme={null}
export SARIVA_PLATFORM_API_KEY=$(grep ^SARIVA_PLATFORM_API_KEY .env | cut -d= -f2)
```

```bash theme={null}
curl -sS http://localhost:8000/api/v1/clusters \
  -H "Authorization: Bearer $SARIVA_PLATFORM_API_KEY"
```

| Port | Serves | Exposed |
| - | - | - |
| `8000` | REST API + the MS Teams inbound webhook (`/api/teams/messages`) | Yes, by the compose file — keep it off the public internet ([section 1](#1-prepare-the-host)) |
| `8001` | MCP server | Only when [MCP](https://sariva.mintlify.site/api-mcp/mcp.md) is enabled — uncomment the port line |

Nothing else listens.

## 7. Connect a cluster

If you skipped the wizard's Step 4 (or are adding a cluster later), register it against the **running** platform. Put the per-cluster credential JSON in `./secrets/` — the directory compose mounts read-only at `/app/secrets`:

```bash theme={null}
cat > secrets/creds.json <<'EOF'
{"api_key": "<observability-kafka-api-key>", "api_secret": "<observability-kafka-api-secret>"}
EOF
chmod 600 secrets/creds.json
```

Reference it as `file:///app/secrets/creds.json` — the **in-container** path, because the platform resolves credential references inside the container (the register step's credential gate reads the file from there, not from your shell):

```bash theme={null}
sariva cluster register --alias <alias> \
  --bootstrap-servers <host:9092> \
  --confluent-env-id <env-xxxxx> --confluent-cluster-id <lkc-xxxxx> \
  --credentials-ref file:///app/secrets/creds.json \
  --api-url http://localhost:8000
```

Then confirm:

```bash theme={null}
sariva cluster list --api-url http://localhost:8000
```

You should see the cluster with a healthy state and `CRED_LIFECYCLE=resolved`. Rotation is silent for `file://` references: overwrite the file and the next read picks it up — no restart. (`env://VAR` also works if the variable is set in `.env`, but every rotation then needs `docker compose up -d` to recreate the container — see [Rotation](https://sariva.mintlify.site/connecting-clusters/rotation.md).)

## 8. Teams only: expose the messaging endpoint over HTTPS

ⓘINFO

**Slack-only install? Skip this section entirely.** Slack Socket Mode is outbound-only — the VM needs no inbound access, no TLS certificate, no public endpoint.

MS Teams is different: Microsoft's Bot Framework calls **inbound** to `/api/teams/messages` over **public HTTPS**. That means three requirements, however you meet them:

1. `https://<your-host>/api/teams/messages` must be reachable from the internet (the hostname from [section 1](#1-prepare-the-host)'s DNS record).
2. A valid TLS certificate for `<your-host>` — Microsoft will not call a plain-HTTP or self-signed endpoint.
3. The bot's **endpoint address** (Teams Developer Portal) or **messaging endpoint** (Azure Bot) must be exactly that URL ([Create the Teams bot](https://sariva.mintlify.site/prerequisites/teams/overview.md#register-the-bot-in-the-developer-portal)).

Any TLS terminator meets them — a corporate customer will usually already have one (a load balancer with a managed certificate, an existing reverse proxy). What follows is the terminator the reference install used: **Caddy**, which holds an automatic Let's Encrypt certificate.

On Amazon Linux 2023, Caddy's COPR repo has **no AL2023 build** — install the binary from the caddyserver.com download instead:

```bash theme={null}
curl -sL -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64"
sudo install -m 755 /tmp/caddy /usr/local/bin/caddy
sudo mkdir -p /etc/caddy
```

```text theme={null}
# /etc/caddy/Caddyfile
sariva.example.com {
    reverse_proxy localhost:8000
}
```

Run it as a systemd unit:

```ini theme={null}
# /etc/systemd/system/caddy.service
[Unit]
Description=Caddy TLS terminator for Sariva
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/caddy run --config /etc/caddy/Caddyfile
ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile
Restart=on-failure
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target
```

```bash theme={null}
sudo systemctl daemon-reload
sudo systemctl enable --now caddy
```

ⓘINFO

**Yes, the endpoint is public.** Sariva validates the JWT Microsoft signs on every inbound Bot Framework call and rejects everything else — an unauthenticated request to `/api/teams/messages` does not reach the agents. If you only expose the Teams path, you can additionally restrict the proxy to `/api/teams/*` and keep the REST API private to the VM.

With the endpoint up, [install the app in Teams](https://sariva.mintlify.site/prerequisites/teams/install-app.md) and set `TEAMS_ALERTS_CHANNEL_ID`.

## 9. Validate

From the wizard output directory (where `config/customer_config.yaml` sits):

```bash theme={null}
sariva validate all
```

`validate` reads `.env` **automatically** on this path — no exporting needed. A `REPLACE_ME_*` placeholder still left in `.env` is reported **per variable**, so a half-filled file tells you exactly which keys remain. Two expected results on a fresh install:

* **GitOps fails until `GITHUB_TOKEN` is real** — expected if you configured a change-delivery repo but haven't created the token yet.
* **Kafka is a green skip with zero clusters** — register one ([section 7](#7-connect-a-cluster)) and re-run.

The [Validate and operate](https://sariva.mintlify.site/install-setup/health-check.md) page covers each check's output and the exit codes; its Kubernetes-only steps (exporting variables, `values.yaml`) don't apply here, and the API is already at `http://localhost:8000`.

Then have your first conversation (Slack or Teams), or use the REST API directly — see [Using Sariva](https://sariva.mintlify.site/using-sariva/overview.md).

### Registered apps on a VM

Apps registered against a VM-shape platform default to `infra_type: "other"` — no Kubernetes is assumed, and the app-health endpoint reports the pod dimension as **NotApplicable** instead of an error ([what pod health means off Kubernetes](https://sariva.mintlify.site/app-teams/logs-and-pod-health.md)). An app registered **before 0.5.127** kept the old `aws_eks` default; move it with:

```bash theme={null}
curl -sS -X PUT http://localhost:8000/api/v1/apps/<alias> \
  -H "Authorization: Bearer $SARIVA_PLATFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"infra_type": "other"}'
```

## 10. Upgrade in place

Proven live (0.5.126 → 0.5.127 on the reference host). Three steps:

```bash theme={null}
# 1. New CLI wheel — BOTH flags, or pipx falls back to Python 3.9 and fails:
pipx install ./sariva_platform-<NEW_VERSION>-py3-none-any.whl --python python3.11 --force

# 2. Edit the image tag in docker-compose.yml to the same <NEW_VERSION>, then:
docker compose up -d

# 3. Confirm the version identity:
curl -fsS http://localhost:8000/api/v1/health   # version == image tag == `sariva --version`
```

Configuration, the `sariva-platform-data` volume, `secrets/`, registered clusters, and registered apps all survive — migrations run automatically on the new container's first start.

ⓘINFO

**Re-running the wizard in a new folder.** If you run a newer wizard in a fresh folder and then `docker compose up -d` there, Docker warns that `volume "sariva-platform-data" already exists but was created for project "<old folder>"`. The warning is harmless. The container uses the existing volume, so your SQLite database, admin keys and registered clusters carry over. Back up your filled `.env` first, because the new wizard writes a fresh one with placeholders. Then compare the two files' key names and copy your old values across.

## 11. Add a second chat surface later

Adding Slack to a Teams-only install (or the reverse) is a **hand edit**, not a wizard re-run — re-running the wizard would overwrite your filled `.env` with fresh placeholders:

1. Add the `notifications.<surface>` block to `config/customer_config.yaml` (copy the shape from the surface's prerequisites page).
2. Add the surface's tokens to `.env` (`SLACK_BOT_TOKEN`/`SLACK_APP_TOKEN`, or `TEAMS_APP_ID`/`TEAMS_APP_PASSWORD`/`TEAMS_TENANT_ID` — plus `TEAMS_ALERTS_CHANNEL_ID` if cluster-level alerts should reach a Teams channel).
3. Recreate the container so it picks up the new environment, then validate the new surface:

```bash theme={null}
docker compose up -d --force-recreate
sariva validate slack    # or: sariva validate teams
```

## CloudWatch log scanning (EC2 only)

The [error-pattern alerts](https://sariva.mintlify.site/app-teams/logs-and-pod-health.md) that scan app logs in CloudWatch work on this path **when the VM is an EC2 instance carrying an IAM role**. The platform's CloudWatch reader uses the standard AWS credential chain, which reaches the instance role — no keys in `.env`, nothing Kubernetes-specific. **On a VM that is not an EC2 instance, CloudWatch log scanning is not supported.**

Three host-side requirements:

1. **An instance role** with Logs Insights read on your app log groups:

```json theme={null}
{
  "Sid": "SarivaLogsInsightsRead",
  "Effect": "Allow",
  "Action": ["logs:StartQuery"],
  "Resource": "arn:aws:logs:us-east-1:<ACCOUNT_ID>:log-group:/sariva-vm/*:*"
},
{
  "Sid": "SarivaLogsInsightsResults",
  "Effect": "Allow",
  "Action": ["logs:GetQueryResults", "logs:StopQuery"],
  "Resource": "*"
}
```

2. **IMDS hop limit 2** — the platform runs in a bridge-network container, which adds a network hop between it and the instance-metadata service; at the EC2 default hop limit of 1 the container never reaches the role and every scan reports `signal_unavailable`:

```bash theme={null}
aws ec2 modify-instance-metadata-options --instance-id <i-xxxx> \
  --http-put-response-hop-limit 2 --http-tokens required --region us-east-1
```

3. **The app registration carries the log group** — `cloudwatch_log_group` plus `alert_on_error_pattern`, exactly as on EKS. For an app whose logs live in a **different AWS account**, set `cross_account_reader_role_arn` (+ `aws_region`) and author the reader role exactly as on EKS: [Cross-account reader setup](https://sariva.mintlify.site/install-setup/cross-account-reader.md). Set `AWS_REGION` in `.env` if your log groups aren't in `us-east-1`.

How the logs *get into* CloudWatch is the app team's side — from a Docker host, the `awslogs` log driver is one ready-made way (it runs in the Docker daemon and uses the same instance role; the hop-limit requirement does not apply to it). The demo workload under `bootstrap/demo/vm/` shows the complete wiring end to end, including the write half of the IAM policy.

## What this path creates or uses

| Resource | Created by | Why it exists |
| - | - | - |
| `docker-compose.yml` | Wizard | Runs the platform container (+ optional Ollama sidecar) |
| `.env` | Wizard, filled by you | Platform secrets as plain environment variables |
| `config/customer_config.yaml` | Wizard | Clusters, channels, and platform settings — mounted read-only |
| `secrets/` directory | Wizard | Per-cluster credential JSON files, mounted read-only at `/app/secrets` |
| `sariva-platform-data` Docker volume | First `docker compose up` (seeded from the image, container-user owned) | SQLite persistence: admin keys, audit history, registered clusters |
| Describe-only Kafka API key per cluster | You, in Confluent Cloud | Read-only observability — see [Minimum read-only ACLs](https://sariva.mintlify.site/prerequisites/confluent-cloud/minimum-acls.md) |
| Org-level `MetricsViewer` API key | You, in Confluent Cloud | Consumer-lag and cluster metrics via the CC Metrics API |
| Elastic IP + DNS record | You, in AWS/DNS | A stable public address; the hostname Teams' TLS certificate is issued for |
| TLS terminator (Teams only) | You | Public HTTPS in front of `/api/teams/messages` |

## Continue the deployment path

> [card] [Next: file:// and env:// credentials](https://sariva.mintlify.site/connecting-clusters/file-env.md)
>
> The VM-native credential reference schemes for per-cluster and org-level Kafka credentials.

> [card] [Back to deployment paths](https://sariva.mintlify.site/deploy/overview.md)
>
> Compare the supported deployment paths.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.