For application-level mutual TLS, certificate requirements, the Compose overlay, and Helm Secret wiring, see Mutual TLS configuration.
scripts/deploy_stack.sh supports the dev deployment profile for both Kind
and Compose. It rejects alpha, prod, and production before startup because
these local defaults lack the complete mTLS configuration and TLS-enabled
PostgreSQL and Vault backends required by strict profiles. For those profiles,
configure deployments directly using the mTLS guide.
Two local paths bring up a service-mode Nomos stack (PostgreSQL durable store +
Vault transit signing + redis sentinel + nginx /mcp gateway + monitor + executor /
OpenShell + agent-signup + OPA), at functional parity:
| Path | Orchestrator | One command | Vault auth |
|---|---|---|---|
| docker-compose | Docker | deploy/scripts/compose-up.sh |
AppRole |
| Kind | Kubernetes (kind) | deploy/kubernetes/scripts/kind-up.sh |
kubernetes-auth |
This page covers docker-compose. For Kind, see kubernetes/README.md.
- Docker Engine running, plus the
docker composev2 plugin (docker compose version). - An
NVIDIA_API_KEYfor the default models routed through NVIDIA API Catalog NIM inference endpoints. Choose Generate API Key for a model on build.nvidia.com and put it indeploy/.env, or let the first run prompt for it. These hosted endpoints are intended for evaluation and trial use. For production deployments, use a self-hosted NVIDIA NIM endpoint or another production-suitable inference backend, such as the documented direct-provider alternatives. Review the NVIDIA API Trial Terms before relying on the hosted API Catalog endpoints.
Nothing else to set up — every other secret is generated for you.
One command brings up and verifies the whole service-mode stack:
deploy/scripts/compose-up.shOn the first run it prompts for the LLM key, then builds the images (a few minutes). Re-runs are
idempotent and reuse deploy/.env. Add -y to skip all prompts (the LLM key must already be in
deploy/.env). When it finishes you'll see VERIFY PASSED and a summary of URLs + credentials.
compose-up.sh runs, in order:
- Preflight — checks
docker+ thedocker composev2 plugin. - LLM key (required) — prompts for
NVIDIA_API_KEY; the council validates these NIM backends at boot. Stored indeploy/.env. - Dev secrets — auto-generates and persists every secret (redis password, account
integrity key, dashboard/signup passwords, Postgres password, Vault dev root token, MCP
proxy token, …) to the gitignored
deploy/.env(0600). Idempotent: existing values are reused.--regenerate-secretsrotates them. - Backends — starts
postgres+vault, then bootstraps Vault (transit engine,nomos-council/nomos-executored25519 keys, annomos-signerAppRole) and writes the resultingVAULT_ROLE_ID/VAULT_SECRET_IDback todeploy/.env. - Stack — builds + brings up the rest in service mode (the council self-migrates the Postgres schema at startup).
- Register + verify — registers a demo agent into Postgres and runs
compose-verify.shend-to-end (authorize → writ → execute → signed evidence via Vault transit).
On success it prints the published URLs + credentials (also in deploy/.env):
| Service | URL | Auth |
|---|---|---|
council /mcp (gateway) |
http://localhost:9900/mcp |
Authorization: Bearer <MONITOR_MCP_PROXY_TOKEN> |
| monitor dashboard | http://localhost:9901/ |
MONITOR_DASHBOARD_USER / …_PASSWORD |
| agent-signup console | https://localhost:9905/ |
NOMOS_SIGNUP_ADMIN_USER / …_PASSWORD |
| demo UI | https://localhost:8000/ |
— |
deploy/scripts/compose-verify.sh # re-run the full verification
deploy/scripts/compose-register-agent.sh <id> [council] # mint another agent (AGENT_ROLE=readonly|developer|operator)
deploy/scripts/compose-down.sh # tear down + clear volumes (Postgres + Vault reset together)
deploy/scripts/compose-down.sh --keep-volumes # stop without clearing volumesFor a ready-to-run local NIM with pure local or mixed local/API Catalog
routing, run deploy/scripts/self-hosted-up.sh --target compose --mode pure
or --mode mixed. See the self-hosted models guide
for hardware, credentials, and role selection. The same guide covers an
existing self-hosted endpoint.
The active Compose service-mode profile is deploy/dynamic-config/council.yaml.
The bootstrap restricts this directory to its owner and COUNCIL_CONFIG_GID,
which is saved in deploy/.env and added to the council container's groups.
It defaults to the deploying user's primary group. On shared hosts, set it to
a dedicated Nomos group your account belongs to; all members can edit council
configuration. Newly created entries inherit the group through setgid directories.
That file includes a commented mixed-model example (different NVIDIA API Catalog models per voting member) and a commented direct-vendor example (Anthropic or OpenAI). To activate either example:
- Update backend definitions and every member, chairman, and code-review reference in the live profile.
- Put the matching provider key in
deploy/.env. API Catalog backends continue to useNVIDIA_API_KEY. For direct vendors, see Anthropic authentication or the OpenAI quickstart. - Set
ALLOW_MISSING_NVIDIA_API_KEY=1if the profile no longer uses NVIDIA inference. - Recreate the council so it picks up the new profile and environment.
For how the live profile relates to the shipped template, and the equivalent steps for Kind, see changing the council model configuration.
- Layered compose files —
docker-compose.yml(base) +docker-compose.redis-sentinel.yml(3 redis nodes + 3 sentinels) +docker-compose.service.yml(this overlay: addspostgres,vault,council-gateway, and flips council/executor/monitor/agent-signup to service mode). Thedc()helper inscripts/dev-lib.shcomposes the base plus the redis topology overlay, and adds any file named inCOMPOSE_EXTRA_FILES(which is how the service overlay is applied), with theexecutor-openshellprofile. - Vault (AppRole) — compose has no Kubernetes API, so the council/executor authenticate to
Vault with
VAULT_ROLE_ID/VAULT_SECRET_ID(the only non-k8s auth the app supports). The dev Vault isserver -dev(in-memory) — its keys are ephemeral, socompose-down.shclears the Postgres volume too, keeping the pair consistent. - Gateway —
council-gateway(nginx,nginx/council-gateway.conf.template) is the token-gated/mcpentrypoint:Bearer <MONITOR_MCP_PROXY_TOKEN>→ council, anything else →401. The monitor remains the internal proxy + dashboard and reads the ledger via the council API (MONITOR_LEDGER_SOURCE=api). - agent-signup runs the service-mode (Postgres) console. If the service is not healthy, verification reports it as a non-fatal soft failure.
All generated credentials live in deploy/.env (gitignored). Re-running compose-up.sh is
idempotent; it re-bootstraps Vault (the dev server is in-memory) and reuses the .env values.
The demo agent's token is reused once agent_accounts.py verify-token confirms it against the
store; if it is missing or no longer verifies, the run stops with recovery choices instead of
re-keying. AGENT_FORCE_ROTATE=1 deliberately mints a new token (the demo service is
recreated with it, since it reads the token only at startup).