What you are installing
Mercury Insight is a private stack for an IBM Sterling B2B Integrator site. After it is up, a browser on port 8443 shows the Command & Control Center. That page is the UI. Control Center login is at /user/login. The same port also serves the API health checks and the file upload path.
The zip does not contain the application images, and it does not contain a git checkout. Docker pulls four images from the Adept GitLab registry, plus Postgres 16 and Qdrant. Those two databases belong to this install. They are not an existing Sterling database.
One address is published: 8443. Insight, Control Center, file-agent, Postgres, and Qdrant stay on the Docker network.
| Piece | What it is |
|---|---|
| Insight API | The API. About 700 MB. No shell and no Python source in the image. |
| Control Center | The Java console behind /user/login. |
| Control Center UI | The Command & Control Center pages. About 14 MB. |
| file-agent | Accepts uploads at /agent-upload/. About 120 MB. No shell. |
| Postgres and Qdrant | Started by this compose file. Their passwords are generated on first boot and are not printed. |
Ops Hub is not in this package. The program that watches directories on the Sterling server is also not in this zip. That program is installed on the Sterling server itself, after this stack is up. This zip is the Mercury Insight host.
What you need first
- A Linux host. Ubuntu, or Red Hat Enterprise Linux 8 or 9. The same Red Hat commands work on Rocky Linux and AlmaLinux. There is no Windows installer.
- Docker Engine and the Docker Compose plugin, both installed. The command used later is
docker compose, with a space. The olderdocker-composeprogram is not enough on its own. - Several gigabytes free. The Insight API image alone is about 700 MB.
- Port
8443free on this host. - A way out to
registry.gitlab.adeptengr.com, and to Docker Hub forpostgres:16-alpineandqdrant/qdrant:v1.13.2. - Two values Adept gave you, on paper or in a message: a registry username, and an access token. The token is the registry password. It is not the Mercury license key. This package leaves the license key empty on purpose.
Download with curl
Run these on the Linux host that will run Mercury Insight. Each block is its own command. Do not paste them onto one line, and do not put curl after apt install. apt would then try to install --fail and the URL as package names.
1. Install curl and unzip
Ubuntu:
sudo apt-get update sudo apt-get install -y curl unzip
Red Hat Enterprise Linux, Rocky Linux, or AlmaLinux:
sudo dnf install -y curl unzip
2. Download the zip
--insecure is only for this download. The certificate is issued for this private name and is not in the public trust store, so curl would otherwise stop.
curl --fail --location --insecure \ --output mercury-insight-install.zip \ https://mercury-insight-install.adeptengr.com/mercury-insight-install.zip
3. Unpack it
unzip mercury-insight-install.zip cd mercury-insight-install ls
ls should show docker-compose.private.yml, nginx.private.conf, .env.private, CUSTOMER.md, START.txt, and a private/ directory. .env.private already names the four registry images and the tags to pull. Leave MERCURY_LICENSE_KEY empty.
Install Docker and Docker Compose
Both have to be installed before the registry sign-in. Docker Engine runs the containers. Docker Compose reads docker-compose.private.yml and starts the whole stack. This page uses the Compose plugin, so the command is docker compose with a space. Do not skip this because docker alone is present. docker compose version has to succeed too.
docker --version docker compose version
If either command is missing, install both, then log out and back in so your user can run Docker. Run one block, for the operating system this host actually is.
Ubuntu
sudo apt-get update sudo apt-get install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo usermod -aG docker "$USER"
Red Hat Enterprise Linux
sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo systemctl enable --now docker sudo usermod -aG docker "$USER"
Log out and back in, or start a new shell with newgrp docker. Then docker ps should run without sudo. If it says permission denied, the new group is not active in this shell yet.
Sign in to the registry with your token
The images are private. docker login asks for three things. Type them at the prompts. Do not paste the token into the command itself, and do not put it in a shell script.
docker login registry.gitlab.adeptengr.com
- Registry. The command already names it:
registry.gitlab.adeptengr.com. - Username. The prompt says
Username:. Type the username you were given, then press Enter. - Password. The prompt says
Password:. Paste the access token you were given. The terminal shows nothing while you paste. That is normal. Press Enter.
A good sign-in ends with Login Succeeded. Docker stores that login in your user directory. Later docker compose pull uses it.
If it says unauthorized, the username and the token do not match, or the token cannot read the Mercury Insight images. Ask for a new token. Do not continue to pull until this line says Login Succeeded.
Start Mercury Insight
Stay in the mercury-insight-install directory.
docker compose --env-file .env.private -f docker-compose.private.yml pull docker compose --env-file .env.private -f docker-compose.private.yml up -d
pull downloads the four Mercury images and the Postgres and Qdrant images. The first time takes several minutes. up -d starts them in the background.
The first start runs a one-time bootstrap. It creates secrets/ and fills passwords for Postgres, Qdrant, the session key, and the upload token. It also writes the Control Center sign-in, CC_ADMIN_USERNAME and CC_ADMIN_PASSWORD. A new install uses admin1 and admin123. It does not print those values. A second up sees secrets/local.application.properties and leaves it alone, so the database password and the sign-in are not replaced.
Watch until the containers are up:
docker compose --env-file .env.private -f docker-compose.private.yml ps
What you should see
Replace nothing if you are on the same host. These are the checks from the install notes.
curl -sS -D - -o /dev/null http://127.0.0.1:8443/ curl -sS http://127.0.0.1:8443/health curl -sS -D - -o /dev/null http://127.0.0.1:8443/user/login curl -sS http://127.0.0.1:8443/agent-upload/health curl -sS http://127.0.0.1:8443/ready
| Address | What a good install returns |
|---|---|
http://<host>:8443/ | 200. The Command & Control Center. |
/health | 200 and {"status":"ok","service":"mercury-insight"}. This does not call the database. |
/user/login | 200. The Control Center login page. |
/agent-upload/health | 200 and {"ok":true}. |
/ready | 200. status is degraded. postgres and qdrant are true. llm and sterling_db2 are false. |
degraded is the right result today. Sterling and the chat service are still empty. The install is complete. It has not been pointed at them yet.
Sign in at /user/login with CC_ADMIN_USERNAME and CC_ADMIN_PASSWORD from secrets/local.application.properties. On a new install those are admin1 and admin123. A later start does not write over a password you have changed. Change it from Accounts, then Users. GET /api/v1/license/status answers only after you have a login. It reports the trial. It does not return the license key.
Sterling, chat, and the license
An empty MERCURY_LICENSE_KEY starts a 90-day trial. The start time is stored on the insight_license volume. A signed key replaces the trial when you put it in .env.private before the first boot, or write it into secrets/local.application.properties and recreate the API container. The check reads /etc/machine-id from the host. Leave that mount in place.
DB2 is the default: SOURCE_DB_ENGINE=db2 and STERLING_DB_DATABASE. For Oracle set SOURCE_DB_ENGINE=oracle and put the service name or SID in STERLING_DB_SERVICE_NAME. SQL Server is not supported. Hostname, port, user, and password are the same for both engines. Chat needs LLM_BASE_URL, LLM_EMBEDDING_BASE_URL, and the matching API keys. Those keys are not the registry token and they are not the license key. Nothing in this package generates them.
Edit secrets/local.application.properties, then recreate the two containers that read it:
docker compose --env-file .env.private -f docker-compose.private.yml up -d --force-recreate --no-deps insight-api controlcenter
Do not delete secrets/ while the Postgres volume still exists. The next boot would generate a new password that does not match the database. docker compose down -v deletes the database, the trial marker, the archive, and the logs. Do not use -v on an install you mean to keep.
The upload token for /agent-upload/ is generated into secrets/file-agent.env. An upload without that token is rejected. The diagnostics connection from a file-agent on the Sterling server uses a different value, AUTH_API_KEYS, in secrets/local.application.properties. The same value is written to INSIGHT_API_KEY, because Control Center sends that key when it syncs. Read it from that file and give it to the person who runs the agent on the Sterling server.
The longer notes in the zip are CUSTOMER.md and START.txt.