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, an optional GPU host for Ollama, the five 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.
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 |
| Optional AWS EC2 w/GPU server (when configured) | Not currently running; e.g. g6e.2xlarge, NVIDIA L40S 48 GB | ollama serve under systemd on :11434, OpenAI-compatible /v1 | Configurable option, started only if a remote-model demo needs it | None, reached as ollama_remote |
Language models (configured)
| Provider | gllms_type | Model | Client | Endpoint |
|---|---|---|---|---|
| Claude / Anthropic | claude | claude-sonnet-5, claude-opus-5 | ChatAnthropic | api.anthropic.com |
| ChatGPT / OpenAI | chatgpt | gpt-5.6-terra, gpt-5.6-luna | ChatOpenAI | OpenAI API |
| Gemini / Google | gemini | gemini-3.7-flash | ChatGoogleGenerativeAI | Google generative AI API |
| Qwen / Alibaba | qwen | qwen3.8-max | ChatOpenAI (OpenAI-compatible) | DashScope, dashscope-us.aliyuncs.com/compatible-mode/v1 |
| Mistral AI | mistral | mistral-large-latest, mistral-small-latest | ChatOpenAI (OpenAI-compatible) | La Plateforme, api.mistral.ai/v1 |
| Ollama, Mac Studio (LAN) | ollama_remote | llama3.1:70b-instruct-q4_K_M, mistral-small3.2 | ChatOpenAI (OpenAI-compatible) with custom base_url | Mac Studio :11434, /v1; LAN only |
| Ollama, local | ollama_local | gemma3 | ChatOpenAI (OpenAI-compatible) with custom base_url | Ollama on the same machine, :11434 |
| Ollama, optional AWS EC2 w/GPU server | ollama_remote | gemma3:27b, llama3.1:70b-instruct-q4_0 (not currently running) | ChatOpenAI (OpenAI-compatible) with custom base_url | Optional EC2 GPU host :11434, /v1; configurable option |
| Dummy | dummy | Dummy model | none | Test stub, no network |
Models are the gllms_model value of each group_llms row, so they are per-group configuration and will change. Cloud model IDs were confirmed against each provider's model-list API on 2026-11-07; the Mac Studio models against its Ollama API. The optional EC2 GPU server is not running, so its models are unverified. Each cloud key also reaches additional sister models (for example claude-sonnet-5-5, gpt-5.6-sol, gemini-3.8-flash, qwen3.8-flash, mistral-medium-latest) that no row uses yet.
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 |