Deployment Overview
Plan an AgentShield deployment. Components to run, data stores to provide, deployment options, and the path from a workstation to production.
AgentShield is self-hosted. You run five application processes and provide four data stores. This section covers every way to deploy them and how to harden each.
What you run
| Process | Scales | State | Exposed to |
|---|---|---|---|
| Gateway | Horizontally, stateless | None (PostgreSQL, Redis) | Agents |
| Control plane | Horizontally, stateless | None (PostgreSQL) | Dashboard, automation |
| Dashboard | Horizontally, stateless | None | Operators' browsers |
| Intelligence engine | Horizontally, stateless | None | Gateway only |
| Event relay | One replica | None (PostgreSQL outbox) | Monitoring only |
What you provide
| Store | Version used in development | Production notes |
|---|---|---|
| PostgreSQL | 16 | Managed service recommended. Apply all migrations; connect services as agentshield_app |
| Redis | 7 | Nonces and budgets. Persistence or replication appropriate to the replay window |
| NATS with JetStream | 2.10 | tls:// required in production for non-loopback servers |
| S3-compatible storage | MinIO | Private bucket for evidence; TLS required for non-loopback endpoints |
| SMTP (optional) | Mailpit | smtps:// or require_tls=true in production |
Deployment options
Docker Compose
One command for a workstation or CI: data services, applications, and observability profiles.
Kubernetes
Kustomize base and overlays with restricted pods and default-deny networking.
From source
Run each process directly for development.
Path to production
Evaluate locally with Docker Compose and the Quickstart.
Provision data stores with TLS: PostgreSQL, Redis, NATS JetStream, and object storage.
Configure services with environment variables and AGENTSHIELD_ENV=production, which enforces the secure settings. See Configuration.
Deploy with the Kubernetes production overlay using signed, digest-pinned images.
Harden and operate with the production checklist, monitoring, and backups.
Network exposure
| Port | Service | Who should reach it |
|---|---|---|
| 8081 | Gateway API | Agents, through TLS termination |
| 8080 | Control plane API | The dashboard, and automation through TLS termination |
| 3000 | Dashboard | Operators, through TLS termination |
| 8082 | Intelligence engine | The gateway only |
| 8083 | Event relay health and metrics | Orchestrator probes and Prometheus |
| 9080–9082 | Metrics | Prometheus only |
Every service binds 127.0.0.1 by default when run from source. Images bind all interfaces inside the container; Compose publishes only to loopback.
Was this page helpful?