# Install the proxy with Docker, Compose or Helm

Get the proxy running in your network with Docker, Docker Compose or Helm, check that it connects to Tellagen and your Grafana, and upgrade it later.

Start on the proxy's page in Tellagen, at **Settings** → **AI diagnosis** → **Cloud**. It shows the proxy token once and prints each command below with your Grafana address and the current version filled in. You also need the Grafana token. [Make it first](https://tellagen.com/help/create-the-grafana-token-for-the-proxy).

The image is ghcr.io/tellagen/tellagen-proxy and the chart is oci://ghcr.io/tellagen/charts/tellagen-proxy. Use the version that the page shows in place of <version>. Point `GRAFANA_URL` (`grafana.url` in Helm) at Grafana's inside address, such as http://grafana.monitoring.svc:3000, not its public name. A public name behind a VPN or Cloudflare Zero Trust asks the proxy to sign in, and it can't. The proxy only connects out to connect.tellagen.com on port 443 and needs nothing opened inbound. Run the doctor to check that it reaches Grafana.

## Before you start

### Intended audience

Admins and platform engineers who run the proxy for Cloud diagnosis.

### Required permissions

An admin must have added the proxy in Tellagen. You need permission to run containers or Helm charts where the proxy will run.


## Procedure

### Docker

<a id="step-docker-save-the-tokens"></a>

1. **Save the two tokens.** In an empty folder, save the proxy token as `tellagen-proxy-token` and the Grafana token as `grafana-token`. Each file holds only the token.

<a id="step-docker-run-the-container"></a>

2. **Run the container.** Run this in that folder. Replace the Grafana address with the one the container can reach. Inside a container, localhost is the container itself.

Docker run command:

```shell
docker run -d --name tellagen-proxy --restart unless-stopped --read-only \
  --user "$(id -u):$(id -g)" \
  -v "$PWD/tellagen-proxy-token:/run/secrets/tellagen-proxy-token:ro" \
  -v "$PWD/grafana-token:/run/secrets/grafana-token:ro" \
  -e TELLAGEN_PROXY_TOKEN_FILE=/run/secrets/tellagen-proxy-token \
  -e GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE=/run/secrets/grafana-token \
  -e TELLAGEN_INSTALL_METHOD=docker \
  -e GRAFANA_URL='https://grafana.example.com' \
  ghcr.io/tellagen/tellagen-proxy:<version>
```

<a id="step-docker-check-the-proxy"></a>

3. **Check the proxy.** Run `docker exec tellagen-proxy /tellagen-proxy doctor`. If something is wrong, read the first line marked `[fail]`.

<a id="step-docker-upgrade-the-proxy"></a>

4. **Upgrade the proxy.** When a newer version is out, the proxy's page in Tellagen prints the upgrade. Run `docker pull` with the new image, then `docker rm -f tellagen-proxy`, then the same run command with the new version.

### Docker Compose

<a id="step-compose-save-the-tokens"></a>

1. **Save the two tokens.** In an empty folder, save the proxy token as `tellagen-proxy-token` and the Grafana token as `grafana-token`. The container runs as user 65532, so give it the files with `sudo chown 65532 tellagen-proxy-token grafana-token`.

<a id="step-compose-save-the-file"></a>

2. **Save the file and start it.** Save this as `compose.yaml` in that folder, then run `docker compose up -d`.

Compose file:

```yaml
services:
  tellagen-proxy:
    image: ghcr.io/tellagen/tellagen-proxy:<version>
    restart: unless-stopped
    read_only: true
    environment:
      TELLAGEN_PROXY_TOKEN_FILE: /run/secrets/tellagen_proxy_token
      GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE: /run/secrets/grafana_token
      TELLAGEN_INSTALL_METHOD: compose
      GRAFANA_URL: "https://grafana.example.com"
    secrets: [tellagen_proxy_token, grafana_token]
secrets:
  tellagen_proxy_token: { file: ./tellagen-proxy-token }
  grafana_token: { file: ./grafana-token }
```

<a id="step-compose-check-the-proxy"></a>

3. **Check the proxy.** Run `docker compose exec tellagen-proxy /tellagen-proxy doctor`. If something is wrong, read the first line marked `[fail]`.

<a id="step-compose-upgrade-the-proxy"></a>

4. **Upgrade the proxy.** Change the version in the image line, or save over the file with the new `compose.yaml` that the proxy's page prints. Then run `docker compose pull && docker compose up -d`.

### Helm

<a id="step-helm-make-the-secret"></a>

1. **Make the Secret.** The chart reads both tokens from a Kubernetes Secret. Run this first. It puts the tokens in your shell history. To avoid that, use [another way to make the Secret](https://tellagen.com/help/store-proxy-secrets).

Kubernetes Secret:

```shell
kubectl create namespace tellagen
kubectl -n tellagen create secret generic tellagen-proxy \
  --from-literal=tellagen-proxy-token='<paste the proxy token>' \
  --from-literal=grafana-service-account-token='<paste your Grafana token>'
```

<a id="step-helm-install-the-chart"></a>

2. **Install the chart.** Run this second. Use the address of Grafana as the proxy sees it, often a service address such as http://grafana.monitoring.svc:3000.

Helm install:

```shell
helm install tellagen-proxy oci://ghcr.io/tellagen/charts/tellagen-proxy \
  --version <version> -n tellagen --create-namespace \
  --set-string grafana.url='https://grafana.example.com' \
  --set existingSecret=tellagen-proxy
```

<a id="step-helm-check-the-proxy"></a>

3. **Check the proxy.** Run `helm test tellagen-proxy -n tellagen`. For the full report, run `kubectl -n tellagen exec deploy/tellagen-proxy -- /tellagen-proxy doctor`, and read the first line marked `[fail]`.

<a id="step-helm-upgrade-the-proxy"></a>

4. **Upgrade the proxy.** When a newer version is out, the proxy's page in Tellagen prints this command. It needs Helm 3.14 or newer, which keeps your settings with `--reset-then-reuse-values`.

Helm upgrade:

```shell
helm upgrade tellagen-proxy oci://ghcr.io/tellagen/charts/tellagen-proxy \
  --version <new version> -n tellagen --reset-then-reuse-values
```

## What happens next

- The checks on the proxy's page pass one by one. You can finish the setup once the first four pass. See [Set up Cloud diagnosis](https://tellagen.com/help/set-up-cloud-diagnosis).
- The proxy shows as Online in the **Cloud** tab.
- The proxy connects out only to connect.tellagen.com on port 443 and to your Grafana. It listens on port 8080 for its own health checks.

## FAQs

<a id="troubleshooting-the-container-stops-and-the-doctor-says-a-token-file-cannot-be-read-by-user-what-now"></a>

### The container stops and the doctor says a token file “cannot be read by user”. What now?

The container user can't read the token file. With Docker Compose, run the `chown` line from the first step. With Docker, run the command as the user who owns the files. See [Read the proxy doctor output](https://tellagen.com/help/read-the-proxy-doctor-output).

<a id="troubleshooting-the-doctor-says-grafana-url-points-to-localhost-what-do-i-use"></a>

### The doctor says “GRAFANA_URL points to localhost”. What do I use?

Inside a container, localhost is the container itself. With Docker, use the host's address, such as host.docker.internal. In Kubernetes, use the Grafana service name.

<a id="troubleshooting-helm-says-tellagen-token-and-existingsecret-are-both-set-set-only-one-why"></a>

### Helm says “tellagen.token and existingSecret are both set. Set only one.” Why?

The chart takes the tokens from one place. Set the Secret name with `existingSecret` and leave `tellagen.token` and `grafana.token` out of your values.

<a id="troubleshooting-i-lost-the-proxy-token-how-do-i-get-a-new-one"></a>

### I lost the proxy token. How do I get a new one?

Select **Get a new token** on the proxy's setup page, or **Rotate token** on a proxy that already runs. Tellagen shows the new token once. Put it in place of the old one.

<a id="troubleshooting-my-network-needs-a-web-proxy-or-a-company-certificate-what-do-i-change"></a>

### My network needs a web proxy or a company certificate. What do I change?

Both are settings of the proxy. See [Connect the proxy through a corporate network](https://tellagen.com/help/connect-the-proxy-through-a-corporate-network).

## Related articles

- **Recommended next task:** [Set up Cloud diagnosis](https://tellagen.com/help/set-up-cloud-diagnosis)
- [Keep the proxy tokens in Vault, External Secrets or a CSI driver](https://tellagen.com/help/store-proxy-secrets)
- [Read the proxy doctor output](https://tellagen.com/help/read-the-proxy-doctor-output)


## Continue through the incident lifecycle

- **Previous task:** [Connect GitHub](https://tellagen.com/help/connect-github)
- **Next task:** [Create the Grafana token for the proxy](https://tellagen.com/help/create-the-grafana-token-for-the-proxy)
- [Back to Support Center](https://tellagen.com/help#help-search)

## Updated

2026-11-28
