Reference ArchiveSource Docs
Deployment
| Mode | How | Status | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------
1 min read
This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.
Original path: docs/14-deployment.md
| Mode | How | Status |
|---|---|---|
| CLI | anvio run / anvio chat against a workspace directory | Supported; verified |
| Single-process daemon | anvio gateway start [--foreground]: channel hub, run worker, HTTP API, WebSocket and A2A routes in one process. Binds to 127.0.0.1:3001 by default (ANVIO_GATEWAY_HOST, ANVIO_GATEWAY_PORT) | Supported; verified at Level 1 in a single process (post-refactoring/06) |
| Separate API / worker processes | apps/api (NestJS) and apps/worker | Code present; multi-process operation on one workspace was not verified, and startup session repair is unsafe there (ROADMAP R-03) |
| Containers | docker/Dockerfile.api, Dockerfile.gateway, Dockerfile.worker; docker/docker-compose.yml (PostgreSQL, Redis, NATS, API) and docker-compose.dev.yml | Files provided; not verified in the latest audit |
| Kubernetes | — | No manifests or Helm chart in this repository |
Operating notes
- One process per workspace. Run one Anvio process per workspace directory. The scheduler and the session repair assume they are the only process using it.
- Restarts. Shutdown does not drain in-flight turns. Turns running at shutdown are reported as failed on the next start, and messages queued behind the concurrency cap are lost (ROADMAP R-01).
- Network exposure. Before exposing the gateway beyond loopback, enable auth and put TLS in front of it. The API refuses to run unauthenticated on a reachable interface (ADR-0018). A2A server auth is configured separately (
a2a.auth). - Environment. Do not run with
NODE_TLS_REJECT_UNAUTHORIZED=0.
Edit on GitHub
Last updated on