Trovella Wiki

Infrastructure

Compute, cloud resources, provisioning, secrets, observability, and deployment.

The Infrastructure domain covers the runtime environment where Trovella runs: the Compute Engine VM, Docker containers, reverse proxy, networking, cloud resources, secret management, and observability.

Topics

Compute

VM configuration, Docker Compose container architecture, Caddy reverse proxy, firewall rules, DNS, and VM operational procedures.

Secrets & Configuration

GCP Secret Manager, environment variables across all environments, the VM secret sync script, CI secret access via Workload Identity Federation, and rotation procedures.

Observability

Structured logging via Pino, error tracking via Sentry, health checks, Cloud Logging integration, and local debugging.

Key Infrastructure

ComponentRole
Compute Engine VMSingle host for all Trovella services (e2-custom-2-6144, 2 vCPU, 6 GB RAM)
Docker ComposeContainer orchestration for Caddy, Next.js, Typesense, Inngest, Cloud SQL Proxy
CaddyReverse proxy with automatic TLS, HTTP/3, www redirect
Cloud SQLManaged PostgreSQL 18 with pgvector (see Data & Storage)
Upstash RedisCache layer (see Caching)
GCP Secret ManagerApplication secret storage, synced to VM at deploy time
TerraformInfrastructure-as-code for all GCP resources

Cross-Domain References

  • Data & Storage -- database schema, caching, and background jobs that run on this infrastructure
  • Delivery -- CI/CD pipeline that builds and deploys to the VM
  • Identity & Access -- authentication and authorization configured through these services

On this page