Skip to content
Docs

Quick Start — Docker Compose

This is the shortest supported path to a running AgentWatch: one Linux host, two files, docker compose up -d. It suits an evaluation, a pilot, or a production deployment of up to about 300 users on the built-in database. Larger and highly available topologies are covered in Deployment and Sizing & Capacity Planning.

Minimum
CPU 4 vCPU (x86_64 or ARM64)
Memory 16 GB RAM — the container is capped at 12 GB, leaving the rest to the OS
Disk 20 GB SSD free
OS Ubuntu 22.04/24.04 LTS, Debian 11/12, RHEL 8+ or Amazon Linux 2023
Software Docker 20.10+ with the Compose v2 plugin (docker compose version prints v2.x)
Network Outbound HTTPS to your LLM providers and to Docker Hub; inbound on port 8787, or on 443 through your own reverse proxy
Registry access A Docker Hub access token issued by Iterate.ai — see below

16 GB is a floor, not a suggestion. Below it, very large prompts with advanced entity detection can exhaust memory and the gateway is restarted by the kernel’s out-of-memory killer. See what is the minimum memory?

How do I get access to the AgentWatch image?

Section titled “How do I get access to the AgentWatch image?”

The image, iterateai/agentwatch, is in a private Docker Hub repository. Access is part of an AgentWatch subscription or an agreed evaluation — it is not publicly downloadable. Your Iterate.ai account team issues each customer:

  • a Docker Hub username, and
  • a read-only access token for that username.

The token is yours alone; we can revoke and reissue it at any time without affecting anyone else. Treat it like a password: keep it out of source control and out of the .env file below. If you do not have one yet, contact your Iterate.ai account team.

Run every step on the host, as a user that can run Docker.

1. Make a folder and download the two files.

Terminal window
mkdir -p ~/agentwatch && cd ~/agentwatch
curl -fsSLo docker-compose.yml https://docs.iterate.ai/agentwatch/deploy/docker-compose.yml
curl -fsSLo .env.example https://docs.iterate.ai/agentwatch/deploy/env.example

docker-compose.yml is meant to be used unchanged. Every setting lives in .env.

2. Create .env and fill in the secrets.

Terminal window
cp .env.example .env
chmod 600 .env

Then open .env and set:

Setting What to put there
JWT_SECRET Output of openssl rand -hex 32 — required
SUPER_ADMIN_EMAIL The first administrator’s email address
SUPER_ADMIN_PASSWORD A strong password for that account — required
ENCRYPTION_KEY Output of openssl rand -hex 64
CHAT_ENCRYPTION_KEY Output of openssl rand -hex 64
BODY_ARCHIVE_KEY_HEX Output of openssl rand -hex 64

Or generate all five secrets in one go (GNU sed, as on any Linux host):

Terminal window
sed -i \
-e "s/^JWT_SECRET=$/JWT_SECRET=$(openssl rand -hex 32)/" \
-e "s/^SUPER_ADMIN_PASSWORD=$/SUPER_ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -d '/+=')/" \
-e "s/^ENCRYPTION_KEY=$/ENCRYPTION_KEY=$(openssl rand -hex 64)/" \
-e "s/^CHAT_ENCRYPTION_KEY=$/CHAT_ENCRYPTION_KEY=$(openssl rand -hex 64)/" \
-e "s/^BODY_ARCHIVE_KEY_HEX=$/BODY_ARCHIVE_KEY_HEX=$(openssl rand -hex 64)/" \
.env
grep -E '^(SUPER_ADMIN_EMAIL|SUPER_ADMIN_PASSWORD)=' .env # note the password

Set the three encryption keys now, before the first start, and back up .env. Left empty, AgentWatch generates a key once, stores it in the database and warns at startup. That key always persists with the database, but it also travels with every database backup, so a key from your secret manager protects better (see Which keys encrypt data at rest?). A key you set cannot later be replaced with another without losing what was written under the old one.

3. Sign in to the registry.

Terminal window
docker login -u <your-docker-hub-username>
# paste the access token when asked for a password

4. Start it.

Terminal window
docker compose up -d

The first start pulls the image (a few GB) and then takes about a minute to load its detection models. Watch it come up:

Terminal window
docker compose ps # STATUS reads "Up … (healthy)" when it is ready
curl -s http://localhost:8787/health

You should see {"ok":true,"version":"…", …}. The version is the one you will quote to support.

Open http://<host>:8787/login in a browser, enter SUPER_ADMIN_EMAIL, then the password. You land on the admin dashboard of the Platform workspace as super-admin. From there:

  1. LLM Providers — add your first provider and its API key.
  2. Employee Management — add yourself as an employee; the console shows the gateway key (ak_…) once, so copy it.
  3. Send one request through the gateway:
Terminal window
curl -s http://<host>:8787/v1/chat/completions \
-H "Authorization: Bearer ak_your_key" \
-H "Content-Type: application/json" \
-d '{"model":"<a model your provider serves>","messages":[{"role":"user","content":"Say hello"}]}'
  1. Usage Insights — the request appears within a few seconds.

Those four steps prove the database, a provider and the gateway all work before anyone else is invited. Then put AgentWatch behind TLS (your load balancer or reverse proxy, forwarding to port 8787).

The super-admin password is managed in .env, not in the console. SUPER_ADMIN_PASSWORD is applied on every start, so a password changed in the console is reset at the next restart. To change it, edit .env and run docker compose up -d.

Pin the version you run in production, so an unattended pull can never upgrade you:

Terminal window
# in .env
AGENTWATCH_IMAGE_TAG=2.0.407

To upgrade, change that line to the new version, then:

Terminal window
docker compose pull && docker compose up -d

Your data lives in the agentwatch-data volume and survives upgrades; schema changes are applied automatically on start. Read the release notes first — any upgrade that needs an action from you says so there.

Where is my data, and how do I back it up?

Section titled “Where is my data, and how do I back it up?”

Everything AgentWatch stores is in two Docker volumes: agentwatch-data (database, encrypted conversation and archive files, downloaded models) and agentwatch-logs. A consistent backup, with a brief stop:

Terminal window
docker compose stop
docker run --rm -v agentwatch-data:/data -v "$PWD":/backup ubuntu \
tar czf /backup/agentwatch-data-$(date +%F).tgz -C /data .
docker compose start

Keep the backup together with .env — without the encryption keys in it, the encrypted files in the backup cannot be read.

All in .env; restart with docker compose up -d after editing.

Setting Default When to change it
AGENTWATCH_IMAGE_TAG latest Always pin a version in production
DATABASE_URL built-in SQLite Use PostgreSQL 14+ above ~300 users: postgresql://USER:PASSWORD@HOST:5432/agentwatch
AGENTWATCH_MEMORY_LIMIT 12G Raise on bigger hosts, e.g. 24G on 32 GB
AGENTWATCH_CPUS 4 Raise to the host’s core count; screening is CPU-bound
BASE_PATH empty Serve under a sub-path behind a reverse proxy, e.g. /agentwatch
Symptom Cause Fix
pull access denied for iterateai/agentwatch Not signed in to Docker Hub, or the token has no access to the repository docker login with the username and token from Iterate.ai; if it persists, ask your account team to check the token
required variable JWT_SECRET is missing a value .env is missing or the setting is empty Run step 2 again; docker compose must be run in the folder that holds .env
required variable SUPER_ADMIN_PASSWORD is missing a value Same, for the password Set it in .env
docker compose ps shows (health: starting) for a minute Detection models loading on first start Wait; it is normally healthy within 60–90 s
Container restarts and docker inspect agentwatch shows OOMKilled: true Host smaller than 16 GB, or AGENTWATCH_MEMORY_LIMIT set too low Move to a 16 GB host or larger; see minimum memory
bind: address already in use on 8787 Something else on the host uses the port Stop it, or change "8787:8787" to "<free-port>:8787" in docker-compose.yml
Sign-in says “If you have an account, check your email or contact your administrator” The email entered is not an account Use exactly SUPER_ADMIN_EMAIL from .env. Changing that setting later does not rename the account — it creates a second super-admin at the next start, and the first keeps working
A password changed in the console stops working after a restart SUPER_ADMIN_PASSWORD in .env is re-applied on every start Change the password in .env instead, then docker compose up -d

More in Troubleshooting & FAQ.