Docker Compose
Docker Compose is the recommended path for evaluation and smaller deployments. The compose release is distributed as an OCI artifact from the 3T registry on Amazon ECR.
- Check prerequisites
- Docker Engine 24+ with Compose v2 (verify with
docker compose version) openssl(used to generate the engine’s encryption key)jq, used by two of the download routes below to read the registry manifest- AWS CLI v2, and an AWS access key for the 3T registry from your onboarding package
- License credentials from your 3T account representative:
BRIDGE_LICENSE_URLandBRIDGE_LICENSE_ID. Without a valid license most features are gated off - A MongoDB connection string for the engine’s system database
- Authenticate to the registry
Configure the AWS credentials from your onboarding package as you normally would, for example aws configure --profile 3t. A named profile is not active until you export it, and every command below assumes those credentials are in effect:
export AWS_PROFILE=3t
export REGISTRY=812987438529.dkr.ecr.eu-central-1.amazonaws.com
Log docker in — it pulls the component images:
aws ecr get-login-password --region eu-central-1
| docker login --username AWS --password-stdin "$REGISTRY"
AWSis a literal username, not a placeholderDo not substitute your IAM user name. ECR’s registry endpoint speaks HTTP Basic auth, which has no concept of IAM, so the authenticated identity is carried inside the token returned by
aws ecr get-login-password.AWSis a fixed literal occupying the username slot and is never resolved against IAM.
The token expires after 12 hours
Running containers keep working, so an expired login surfaces only on the next pull — a restart or an upgrade, often days later. Re-run the command above before pulling again.
- Download and extract the release
The compose bundle is published to Amazon ECR as an OCI artifact. Pick whichever of these routes suits your environment; they fetch the identical file.
Replace <version> with the release you are installing — plain semver like 1.1.3, no leading v. There is no latest on ECR: a customer-facing registry carries version tags only, so that a tag cannot move under a running deployment.
oras
One command, and it restores the original filename. Needs the oras CLI.
aws ecr get-login-password --region eu-central-1 \
| oras login --username AWS --password-stdin "$REGISTRY"
oras pull "$REGISTRY/3t-compose/3t-bridge:<version>"
AWS CLI + jq
No registry login at all: this route asks AWS for the layer directly. Needs the AWS CLI, jq and curl.
DIGEST=$(aws ecr batch-get-image --region eu-central-1 \
--repository-name 3t-compose/3t-bridge \
--image-ids imageTag=<version> \
--query 'images[0].imageManifest' --output text | jq -r '.layers[0].digest')
URL=$(aws ecr get-download-url-for-layer --region eu-central-1 \
--repository-name 3t-compose/3t-bridge \
--layer-digest "$DIGEST" --query 'downloadUrl' --output text)
curl -fsSL "$URL" -o 3t-bridge-v<version>-compose.tar.gz
curl
Straight against the registry API, for scripting against ECR directly.
TOK=$(aws ecr get-authorization-token --region eu-central-1 \
--query 'authorizationData[0].authorizationToken' --output text)
DIGEST=$(curl -fsS -H "Authorization: Basic $TOK" \
-H 'Accept: application/vnd.oci.image.manifest.v1+json' \
"https://$REGISTRY/v2/3t-compose/3t-bridge/manifests/<version>" | jq -r '.layers[0].digest')
curl -fsSL -H "Authorization: Basic $TOK" \
"https://$REGISTRY/v2/3t-compose/3t-bridge/blobs/$DIGEST" \
-o 3t-bridge-v<version>-compose.tar.gz
-L matters: the blob request redirects to S3. -f matters too: without it curl exits 0 on an HTTP error and writes the error body, so an expired token leaves you with a .tar.gz containing {"errors":[{"code":"DENIED",...}]} that fails later in tar with a misleading “Unrecognized archive format”.
tar xzf 3t-bridge-v<version>-compose.tar.gz
cd 3t-bridge
docker pullwill not work for the bundleThe bundle is published with its own artifact type (
application/vnd.3t.compose.bundle.v1) rather than as a container image, because it is not one. Docker refuses it. Use one of the routes above.
The extracted directory contains docker-compose.prod.yml, setup.sh, mstream-config.toml.example, .env.production.example, and README.customer.md.
- Run the setup script
bash setup.sh
The interactive setup script prompts for your OIDC provider details, service endpoints, and storage configuration. It generates a .env file and mstream-config.toml consumed by Docker Compose.
It no longer asks for a registry username and password: it logs in to ECR itself with aws ecr get-login-password, so the AWS CLI must be installed and your credentials configured before you run it.
- Start the stack
docker compose -f docker-compose.prod.yml up -d
This starts all services. Bridge is available at http://localhost:3000 by default.
- Log in
Open Bridge in your browser. If OIDC is configured, you are redirected to your identity provider. After login, you are returned to the Bridge dashboard.
For development without OIDC, Bridge can run in unauthenticated mode — leave the OIDC provider configuration empty so the SPA presents no login. Do not use unauthenticated mode in any environment reachable outside a trusted network.
- Create a first pipeline
The quickest way to confirm the deployment works is a pipeline that needs no source system at all — a generator builds documents from a schema, so there is nothing to connect, populate, or enable change streams on.
- Go to Guardrails → Schema in Transform Studio and save a small JSON Schema describing the documents you want, then note its name
- Go to Services and add a Generator service — set events per second, and leave total events empty to run until you stop it
- Add a MongoDB sink. The database you configured for Bridge itself works here; point it at a scratch collection
- Go to Pipelines, create a pipeline with the generator as its source and that collection as its sink, and select the schema on the source stage — a generator needs one to know what to produce
- Start the pipeline, and watch events and throughput move in the metrics panel
See Generating Data for what rate, volume and seed do.
When you are ready to connect a real system, replace the source: a MongoDB change stream for live changes, a Kafka topic or Pub/Sub subscription for a broker, or a scanner to read records that already exist. Everything downstream of the source stays as it is.
Kubernetes (Helm)
The Helm chart is the production deployment path. It covers ingress, ConfigMap configuration, secret management, Prometheus ServiceMonitor, and HA via Valkey.
- Pull the Helm chart
The chart comes from the same ECR registry as the images. Configure the AWS credentials from your onboarding package, then log Helm in:
export AWS_PROFILE=3t
export REGISTRY=812987438529.dkr.ecr.eu-central-1.amazonaws.com
aws ecr get-login-password --region eu-central-1 \
| helm registry login --username AWS --password-stdin "$REGISTRY"
AWS is a literal username, not a placeholder for your IAM user name.
Replace <version> with the latest version (plain semver like 1.1.3, no leading v) from the release notes. Note there is no /v<major> segment in the ECR path:
helm pull "oci://$REGISTRY/3t-helm/3t-bridge" --version <version>
- Create the image pull secret
The cluster needs its own credential to pull the images: the Helm login above only covers the chart. Create the namespace first:
kubectl create namespace 3t-bridge
The registry issues short-lived tokens: one is valid for 12 hours. A Secret created by hand therefore stops working, and the symptom is ImagePullBackOff on any pod created or rescheduled after it lapses, often days later during an unrelated restart, which makes it hard to connect to the cause.
Set this up with External Secrets Operator from the start, so the credential is never something anyone has to remember to renew. Store the AWS credentials from your onboarding package once:
apiVersion: v1
kind: Secret
metadata:
name: ecr-pull-credentials
namespace: 3t-bridge
type: Opaque
stringData:
access-key-id: <access key from your onboarding package>
secret-access-key: <secret key from your onboarding package>
Then let ESO mint the pull secret from them and keep it fresh:
apiVersion: generators.external-secrets.io/v1alpha1
kind: ECRAuthorizationToken
metadata:
name: ecr-token
namespace: 3t-bridge
spec:
region: eu-central-1
auth:
secretRef:
accessKeyIDSecretRef:
name: ecr-pull-credentials
key: access-key-id
secretAccessKeySecretRef:
name: ecr-pull-credentials
key: secret-access-key
---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: 3t-registry-creds
namespace: 3t-bridge
spec:
refreshInterval: 6h
target:
name: 3t-registry-creds
template:
type: kubernetes.io/dockerconfigjson
engineVersion: v2
data:
.dockerconfigjson: |
{
"auths": {
"{{ .proxy_endpoint | trimPrefix "https://" }}": {
"username": "{{ .username }}",
"password": "{{ .password }}",
"auth": "{{ printf "%s:%s" .username .password | b64enc }}"
}
}
}
dataFrom:
- sourceRef:
generatorRef:
apiVersion: generators.external-secrets.io/v1alpha1
kind: ECRAuthorizationToken
name: ecr-token
refreshInterval: 6h is half the token’s lifetime, so a refresh always lands well before one lapses. The generated Secret is named 3t-registry-creds, which is what global.imagePullSecrets references in the values file below, so no values change is needed.
Evaluating only?
To try the stack without ESO, create the Secret directly. It stops working after 12 hours, so use this only for a short trial:
kubectl -n 3t-bridge create secret docker-registry 3t-registry-creds \ --docker-server="$REGISTRY" \ --docker-username=AWS \ --docker-password="$(aws ecr get-login-password --region eu-central-1)"
- Create a values file
Create values.yaml with your environment-specific settings:
global:
imagePullSecrets:
- name: 3t-registry-creds
ingress:
enabled: true
host: bridge.yourcompany.com
bridge:
oidc:
providers:
- id: google
name: "Google"
authority: "https://accounts.google.com"
clientId: "your-google-client-id.apps.googleusercontent.com"
mstream:
encryptionKey: "<openssl rand -hex 32>"
license:
url: "https://your-license-manager.example.com"
credentials:
mstreamSystemDbUri: "mongodb+srv://user:[email protected]/"
bridgeLicenseId: "your-license-id"
These inline values get you running with the least setup; the chart creates the Secret for you. For production, two more secure alternatives exist: referencing an existing Secret, or syncing from your secret manager via External Secrets Operator. See Required Secrets on the Deployment page.
Front Bridge with an OIDC-aware ingress that authenticates requests: the pipeline engine trusts that boundary rather than re-verifying tokens itself (see Request Trust Model on the Security page).
- Install the chart
helm install 3t-bridge 3t-bridge-<version>.tgz \
--namespace 3t-bridge \
--create-namespace \
--values values.yaml
- Verify the deployment
kubectl get pods -n 3t-bridge
All pods should reach Running status. Bridge is accessible at the ingress host you configured.
First Pipeline Checklist
- At least one source service added — a Generator needs nothing external; MongoDB, Kafka, Pub/Sub, HTTP and Scanner connect to something
- A schema registered and selected on the source stage, if the source is a Generator — it will not start without one
- At least one sink service added
- Pipeline created and source/sink configured
- Transformation logic added (optional — passthrough if omitted)
- Pipeline started and events visible in the job metrics panel