# Install for a team

Run the self-hosted product from published images with Docker Compose or Kubernetes, HTTPS, webhooks and shared access.

Canonical page: https://ontlgy.io/docs/operate/install/

Run one installation for a team. Start with the [local quickstart](https://ontlgy.io/docs/start/quickstart/) if you are evaluating alone.

## What you deploy

ontlgy publishes **one image of its own**, [`appsmithvivonk/ontlgy`](https://hub.docker.com/r/appsmithvivonk/ontlgy), for `linux/amd64` and `linux/arm64`. The web app (UI, API, MCP endpoint, webhook receiver) and the background worker run from that same image with different commands. The installation also runs the official `postgres:16` and `neo4j:5.24-community` images.

| Service | Image | Replicas |
| --- | --- | --- |
| `app` | `appsmithvivonk/ontlgy` | 1 |
| `worker` | `appsmithvivonk/ontlgy` | 1 |
| `postgres` | `postgres:16` | 1 |
| `neo4j` | `neo4j:5.24-community` | 1 |

All deployment files live in the public [`ontlgy-deployments`](https://github.com/ontlgy/ontlgy-deployments) repository: Docker Compose, a Helm chart and plain Kubernetes manifests. You do not need ontlgy's source code. Image tags are `sha-<commit>` (immutable) and `latest`; the deployment files pin the `sha-` tag they were validated against. List the [available tags](https://hub.docker.com/r/appsmithvivonk/ontlgy/tags).

Use Docker Compose for one host. Use Kubernetes if your team already operates a cluster.

## Install with Docker Compose

Prepare a host with Docker and Compose v2, enough memory and disk for the repositories you intend to index, and a hostname your users can reach. The initial documented baseline is about 4 GB free memory and 10 GB disk; it is not a capacity guarantee.

```bash
git clone https://github.com/ontlgy/ontlgy-deployments.git
cd ontlgy-deployments/docker-compose
cp .env.example .env
```

Fill every required value in `.env`. Generate each database password separately with `openssl rand -hex 24`; generate each application key separately with `openssl rand -base64 32`. Set `ONTLGY_PUBLIC_URL` to the intended public address. See the [configuration reference](https://ontlgy.io/docs/operate/configuration/). (`bash install.sh` does this step for you with fresh secrets; use it if you do not need to choose the values yourself.)

```bash
chmod 600 .env
docker compose up -d
docker compose ps
```

The app applies migrations at startup. The worker waits for app health in the supplied Compose setup. Postgres and Neo4j ports are not published to the host.

## Install on Kubernetes

You need a cluster with a default storage class (or set one), `kubectl`, and for the first option Helm 3. The app and worker each run a single replica; the bundled Postgres and Neo4j are StatefulSets with persistent volumes. To use databases you already run, see the chart's values.

**Helm chart** (recommended):

```bash
git clone https://github.com/ontlgy/ontlgy-deployments.git
cd ontlgy-deployments
helm install ontlgy helm/ontlgy \
  --namespace ontlgy --create-namespace \
  --set publicUrl=https://ontlgy.example.com
```

Only `publicUrl` is required. The chart generates the database passwords and application keys on first install, stores them in a Secret and keeps them across upgrades and uninstall. Set `ingress.enabled=true` and `ingress.host` to expose it, or test with `kubectl -n ontlgy port-forward svc/ontlgy-app 8080:80` and `publicUrl=http://localhost:8080`. Keep your values in a file and pass it with `-f` on every upgrade.

**Plain manifests with Kustomize:**

```bash
git clone https://github.com/ontlgy/ontlgy-deployments.git
cd ontlgy-deployments/kubernetes
# edit ONTLGY_PUBLIC_URL in kustomization.yaml, then:
bash create-secret.sh
kubectl apply -k .
```

An optional Ingress is in `kubernetes/optional/ingress.yaml`. Check `kubectl -n ontlgy get pods` until every pod is ready; the first start pulls the images and migrates both databases.

## Add HTTPS

The bundle serves plain HTTP on its web port, normally 8080 with Compose. Before sharing it beyond a trusted local evaluation environment, put your team's reverse proxy, load balancer or Kubernetes ingress in front of it and terminate HTTPS there.

- Forward requests to the app's HTTP port.
- Set `ONTLGY_PUBLIC_URL=https://YOUR_INSTALLATION` (`publicUrl` in Helm).
- Set `ONTLGY_TRUST_PROXY=true` (`trustProxy=true` in Helm) only when a trusted proxy is in front of the app; prevent clients from bypassing that proxy.
- Ensure the proxy supports the MCP endpoint's HTTP traffic and your chosen request timeouts.

Recreate the app and worker after configuration changes:

```bash
docker compose up -d --force-recreate app worker
```

On Kubernetes, `helm upgrade` with the changed values (or `kubectl apply -k .` after editing the kustomization) rolls the app and worker.

## Complete onboarding

Create the first administrator, [connect GitHub](https://ontlgy.io/docs/sources/github/), select repositories and wait for indexing. Add members under **Users** and have each member create their own key under **Connect your agent**.

Test from the actual client machine, not just the server. For automatic indexing, GitHub must reach `ONTLGY_PUBLIC_URL/webhook/github`.

## Plan ongoing operation

Keep the app, worker and both databases running. Establish [backups and an upgrade procedure](https://ontlgy.io/docs/operate/maintenance/) before the installation becomes a dependency for the team. Review [shared access boundaries](https://ontlgy.io/docs/operate/access/) before selecting repositories or document spaces.
