User and operator guide · Deployment

Docker Deployment

Status: currentReviewed: 2026-06-18Audience: developers, deployment engineers, lab operators
On this pagePurposeSupported Image Build PathOperator PrerequisitesDocker TopologyCompose AssetsRecommended Docker PathsInfrastructure Lab ProcedureStartup SequenceHost Ports To ReviewValidationBackup And RecoveryStop, Roll Back, Or ResetTroubleshootingHardening Checklist
Important

Docker deployment assets in this repository support development, lab, and local validation workflows. They include dev-mode secrets and loopback bindings in some paths. Review and replace secrets, trust material, image sources, persistence, and network exposure before using Docker assets outside a controlled lab.

Purpose

Docker is the fastest way to assemble Atlas dependencies for developer and validation workflows. It is also useful for small lab demonstrations where a single host can run the gateway dependencies, TrustAI support services, monitoring, and simulation components.

Supported Image Build Path

Atlas uses docker-bake.hcl as the authoritative image matrix. GitHub Actions publishes the same matrix to ghcr.io/mavin2009/atlasiga.

Image group Images Command

Production

api-gateway, frontend, atlas-authn, atlas-identity, atlas-session, atlas-directory, atlas-governance, atlas-application-onboarding, atlas-api-access, atlas-device-assurance, atlas-pam, atlas-risk, atlas-mission, atlas-incident, atlas-cache, trustai, attestation, consumer, killswitch, interceptor

make container-build-prod CONTAINER_TAG=<tag>

Demo

atlas-demo-iga, atlas-demo-app, atlas-demo-directory, atlas-demo-ldap-tls, atlas-demo-probe-runner, atlas-demo-application-onboarding, atlas-demo-target-app-adapter, atlas-demo-session-accounting, atlas-demo-trustai-scoring

make container-build-demo CONTAINER_TAG=<tag>

All

Production and demo images.

make container-build CONTAINER_TAG=<tag>

Before pushing or deploying, run:

make container-validate

Expected result: the Bake plan renders, Kubernetes demo and production overlays render, the supported deployment path does not include a Redis server container, and stale TrustAI-only image publishing references are rejected.

To publish to GHCR from a workstation with appropriate credentials:

docker login ghcr.io
make container-push CONTAINER_TAG=sha-$(git rev-parse --short=12 HEAD)

GitHub Actions performs the supported push on main, release, or manual dispatch and uploads the image manifest evidence.

Operator Prerequisites

Run Docker commands from the repository root. Confirm the host has enough local CPU, memory, and disk for the selected Compose files and that the operator is allowed to bind the documented host ports.

Required tools:

  • Docker Engine with Compose v2

  • curl for endpoint checks

  • rg or another log-search tool for evidence review

Preflight commands:

docker compose version
docker network ls | rg 'atlas-net|NAME'
ss -ltnp | rg ':(5433|6380|5673|15673|8201)\b' || true
docker compose -f docker/atlas-infrastructure.yml config --quiet

Expected result: Compose parses the file successfully. Any port already shown by ss must be either accepted as intentional, moved, or freed before starting the lab stack.

Docker Topology

Docker Deployment
Docker DeploymentArchitecture diagramOpen full size ↗

Compose Assets

Asset Role Primary use Review notes

docker/atlas-infrastructure.yml

PostgreSQL, Atlas Cache, RabbitMQ, Vault on the atlas-net bridge network.

Local Atlas IGA infrastructure dependency set.

Contains development credentials and host ports. Replace before any shared deployment.

docker-bake.hcl

Production and demo image matrix for Buildx Bake.

CI, local image builds, and GHCR publishing.

This is the authoritative container build surface for current Atlas images.

demo/atlas-ldap-showcase/docker-compose.yml

Interactive demo stack with Atlas Cache, demo gateway, mission app, target app fixtures, probe runner, application onboarding fixture, session accounting, and TrustAI scoring.

Manual demonstrations and end-to-end access collapse walkthroughs.

Local/demo-only credentials and generated certificates; not a production topology.

docker/local-live-validation-infra.yml

Loopback-bound Keycloak, SimpleSAMLphp, Atlas Cache, LDAP, Vault, and firewall simulator.

Automated local-live validation.

Started by scripts/run-local-live-validation.sh; prefer the script over manual edits.

docker/trustscore-services.yml

TrustAI, attestation, consumer, kill-switch, interceptor, Oxigraph, and SoftHSM service stack.

Lab service composition and integration testing.

Several literal container names and images still use legacy trustscore identifiers; treat them as implementation IDs, not product names.

docker/monitoring.yml

Prometheus, Grafana, Loki, AlertManager, and related monitoring assets.

Local observability.

Harden dashboard credentials and scrape exposure before shared use.

docker/vault.yml, docker/spire-server.yml, docker/opa.yml

Security infrastructure sidecars or support services.

Lab validation of secrets, identity, and policy integration.

Dev-mode setup is not a production Vault, SPIRE, or OPA authority. Use security:spiffe-mtls.html to distinguish Docker lab evidence from target-environment service identity evidence.

Path Command Use case Evidence produced

Local-live validation

./scripts/run-local-live-validation.sh --keep-running

Full local HTTPS validation with generated TLS, federation, CAC, firewall simulation, TrustAI edge, and browser/API tests.

artifacts/local-live-validation/<timestamp>/ and nested security-validation output.

Atlas infrastructure only

docker compose -f docker/atlas-infrastructure.yml up -d

Start database, cache, message bus, and Vault dependencies for local service development.

Container state and logs only unless paired with validation scripts.

Service lab stack

docker compose -f docker/trustscore-services.yml up -d

Run trust scoring support services in a lab network.

Container health, logs, and service metrics.

Monitoring

docker compose -f docker/monitoring.yml up -d

Start local observability stack.

Prometheus/Grafana runtime evidence if dashboards are exported.

Infrastructure Lab Procedure

Use this path when an operator needs the Atlas database, cache, message bus, and Vault dependencies on a single host.

RUN_ID="$(date -u +%Y%m%d-%H%M%S)-docker-lab"
EVIDENCE_DIR="artifacts/deployment/docker-lab/$RUN_ID"
mkdir -p "$EVIDENCE_DIR"

docker compose -f docker/atlas-infrastructure.yml config >"$EVIDENCE_DIR/atlas-infrastructure.rendered.yml"
docker compose -f docker/atlas-infrastructure.yml up -d
docker compose -f docker/atlas-infrastructure.yml ps >"$EVIDENCE_DIR/atlas-infrastructure.ps.txt"
docker inspect --format '{{.Name}} {{.State.Health.Status}}' atlas-postgres atlas-cache atlas-rabbitmq atlas-vault >"$EVIDENCE_DIR/container-health.txt"
docker compose -f docker/atlas-infrastructure.yml logs --no-color >"$EVIDENCE_DIR/atlas-infrastructure.log"

Expected result:

Component Healthy evidence

PostgreSQL

container-health.txt shows /atlas-postgres healthy.

Atlas Cache

container-health.txt shows /atlas-cache healthy.

RabbitMQ

container-health.txt shows /atlas-rabbitmq healthy.

Vault

container-health.txt shows /atlas-vault healthy; this is dev-mode Vault evidence only.

To start the service lab stack after infrastructure is healthy:

docker compose -f docker/trustscore-services.yml config >"$EVIDENCE_DIR/trustscore-services.rendered.yml"
docker compose -f docker/trustscore-services.yml up -d --build
docker compose -f docker/trustscore-services.yml ps >"$EVIDENCE_DIR/trustscore-services.ps.txt"
docker compose -f docker/trustscore-services.yml logs --no-color >"$EVIDENCE_DIR/trustscore-services.log"

Several service names in this Compose file retain trustscore implementation identifiers. Record them as deployed identifiers; do not treat the names as a separate product boundary.

Startup Sequence

Docker Startup
Docker StartupArchitecture diagramOpen full size ↗

Host Ports To Review

Port Component Default exposure Review requirement

5433

Atlas PostgreSQL from atlas-infrastructure.yml

Host loopback or host interface depending on Docker configuration.

Restrict to local development; do not expose database ports in shared deployments.

6380

Atlas Cache from atlas-infrastructure.yml

Mapped to host.

Require authentication, TLS proxy, and network restriction before shared use.

5673, 15673

RabbitMQ AMQP and management UI

Mapped to host.

Use non-default credentials and restrict management UI access.

8201

Vault dev listener

Mapped to host.

Dev mode only. Replace with initialized and unsealed Vault for real deployments.

8443, 18480, 16379, 16389

Local-live HTTPS/federation/firewall/cache/directory surfaces

Loopback-bound by the validation Compose file.

Local validation only.

Validation

RUN_ID="$(date -u +%Y%m%d-%H%M%S)-docker-validation"
EVIDENCE_DIR="artifacts/deployment/docker-lab/$RUN_ID"
mkdir -p "$EVIDENCE_DIR"

docker compose -f docker/atlas-infrastructure.yml ps | tee "$EVIDENCE_DIR/atlas-infrastructure.ps.txt"
docker compose -f docker/trustscore-services.yml ps | tee "$EVIDENCE_DIR/trustscore-services.ps.txt"
./scripts/check-host-exposed-services.sh 2>&1 | tee "$EVIDENCE_DIR/host-exposure.log"
REPORT_ROOT="$EVIDENCE_DIR/security-validation" ./scripts/run-security-validation.sh 2>&1 | tee "$EVIDENCE_DIR/security-validation.console.log"
REPORT_ROOT="$EVIDENCE_DIR/local-live-validation" ./scripts/run-local-live-validation.sh 2>&1 | tee "$EVIDENCE_DIR/local-live-validation.console.log"

Use ./scripts/run-local-live-validation.sh --keep-running when a human needs to inspect the UI after automated validation. Use docker compose logs --no-color <service> for evidence capture, then redact credentials before sharing.

Expected result: run-security-validation.sh and run-local-live-validation.sh exit zero, host exposure output has no unexpected broad bindings, and any skipped live sub-check is excluded from deployment claims.

Backup And Recovery

Docker backup and restore is appropriate for developer, lab, and controlled demonstration deployments. Capture Compose configuration, named volumes, database dumps where needed, image digests, logs, and evidence artifacts before restore testing. Do not promote generated local-live certificates, Vault dev state, or sample credentials as durable operational state. Use Backup And Recovery: Docker Lab Runbook for the deployment-specific checklist.

Stop, Roll Back, Or Reset

Stop the service layer before the shared infrastructure layer:

docker compose -f docker/trustscore-services.yml down
docker compose -f docker/atlas-infrastructure.yml down

For a destructive lab reset that removes named volumes:

docker compose -f docker/trustscore-services.yml down -v --remove-orphans
docker compose -f docker/atlas-infrastructure.yml down -v --remove-orphans

Expected result: docker compose ps shows no running containers for those files. A destructive reset removes local database, cache, queue, and Vault dev state; keep evidence and backups before running it.

Troubleshooting

Symptom Command Disposition

Port already bound

ss -ltnp {vbar} rg ':(5433{vbar}6380{vbar}5673{vbar}15673{vbar}8201)\b'

Move the binding in the Compose file for the lab run or stop the conflicting local service.

Container is unhealthy

docker compose -f docker/atlas-infrastructure.yml logs --no-color <service>

Preserve logs, fix the dependency or configuration issue, and rerun validation.

Service stack cannot reach infrastructure

docker network inspect atlas-net

Confirm both Compose stacks attach to atlas-net and that infrastructure containers are healthy.

Validation fails after stack changes

rg -n "FAIL{vbar}ERROR{vbar}skipping{vbar}may skip" "$EVIDENCE_DIR"

Treat failures as findings and skipped checks as unsupported claims until rerun evidence exists.

Hardening Checklist

Area Required action before shared or enterprise use

Secrets

Replace dev passwords, Vault dev tokens, generated local certs, and sample keys with environment-owned secrets.

Network

Remove unnecessary host port bindings, bind administrative services to loopback or private networks, and document every exposed port.

Images

Pin images by digest where required, scan images, and record provenance.

Persistence

Map volumes to approved storage, document backup/restore, and test recovery.

TLS and identity

Replace local generated certs with environment trust material and validate client/server authentication.

Evidence

Run security validation after every change and record skipped checks explicitly.