Cognosa Deployment Topology
EC2 hosts, Docker Compose containers, and external services
Where each runtime piece of the Cognosa web app lives: the per-environment EC2 application host and its six Docker Compose containers, the GPU host for Ollama, the four cloud LLM APIs, and the AWS and external services around them. Qdrant is the vector store shown; ChromaDB and pgvector are tested drop-in alternatives behind the same group_vdbs config.
Container, Python process (ollama: systemd service)
Container, data store
Container, edge / TLS
Volume or bind mount
External or AWS service
Replicated or alternate instance
Arrows point from the client that opens the connection to the service that listens; the label says what moves.
Hosts
| Host | Instance | Runs | Power | TLS |
|---|---|---|---|---|
dev.cognosa.net44.230.124.164 | c6a.xlarge, Ubuntu 24.04, us-west-2i-01cf57d1433d161fc | compose: nginx, app, rt, db, qdrant (+ certbot on demand) | Manual start and stop | Let's Encrypt on the box, cron renew |
demo.cognosa.net52.13.212.94 | c6a.xlarge, Ubuntu 24.04, us-west-2i-0cb656285d48d9bfc | Same compose stack | EventBridge Scheduler 10:00 to 18:00 PT daily | Let's Encrypt on the box, cron renew |
prod (planned) | TBD | Same compose stack | Always on | Let's Encrypt or CloudFront, undecided |
| LLM host | g6e.2xlarge, NVIDIA L40S 48 GB, 300 GB gp3 | ollama serve under systemd on :11434, OpenAI-compatible /v1 | Started when a local-model demo needs it | None, reached as ollama_remote |
Inside the application host
| Container | Image or build | Ports | Storage | Role |
|---|---|---|---|---|
| nginx | nginx:stable | 80, 443 | nginx_certs, nginx_vhost, ./nginx | HTTPS termination, HTTP 301, proxy to app:8000, certbot webroot |
| app | webapp.Dockerfile | 8000 internal | ./app_logs, hf_cache | FastAPI + uvicorn, fastapi-users JWT, serves the built React SPA from backend/static |
| rt | run_tasks.Dockerfile | none | ./rt_logs, hf_cache | run_tasks.py: 2 VDB worker processes with preloaded embedding models, threaded LLM workers, LangChain chains, watchdogs |
| db | postgres:17 | 5432 | ./pg_db_data | cwa_db: tenants, users, LLM and VDB configs, contexts, doc_tasks, audit log |
| qdrant | qdrant/qdrant:v1.15.5 | 6333 | ./qdrantdb | One collection per tenant VDB, metadata-filtered hybrid retrieval |
| certbot | certbot/certbot | none | nginx_certs, nginx_vhost | Profile tools; run on demand for issue and renew |