โ
Fully Open Source: This diagram service is built with mermaid.js (MIT), Node.js (MIT), and runs completely self-hosted with no external paid services.
๐ System Overview
๐ Data Flow
๐ Security Architecture
๐ณ Services Topology
๐ง Disaster Recovery
๐ Deployment Pipeline
๐ System Overview
The complete MyMindVentures AI Stack architecture spanning 11 docker-compose stacks with 27 services
graph TB
Internet["๐ Internet Users"]
DNS["๐ DNS"]
Internet --> Caddy["๐ EDGE: Caddy Reverse Proxy + HTTPS Rate Limiting Security Headers"]
DNS --> Caddy
Caddy --> AuthStack["๐ SSO & Authentication โโโโโโโโโ Authelia (MFA) PostgreSQL Redis"]
Caddy --> DataStack["๐ Data Stack โโโโโโโโโ Airbyte ETL PostgreSQL S3 Compat"]
Caddy --> SearchStack["๐ Search Stack โโโโโโโโโ SearXNG Metasearch Redis Cache Elasticsearch"]
Caddy --> ObsStack["๐ Observability โโโโโโโโโ Prometheus Grafana Dashboards Loki Logs AlertManager"]
Caddy --> DiagStack["๐ Diagrams โโโโโโโโโ Mermaid (Self-Hosted) Architecture Docs"]
Caddy --> DBTools["๐๏ธ DB Tools โโโโโโโโโ CloudBeaver PgAdmin PostgreSQL"]
Caddy --> PlatformStack["๐ Platform โโโโโโโโโ Dokploy Container Registry Deployment"]
ObsStack --> Backup["๐พ Backup System Restic Daily Backups Automated Encryption"]
ObsStack --> IDS["๐จ Security Monitoring Falco Intrusion Detection Real-time Alerts"]
AuthStack --> Vault["๐ Secrets Vault + Consul Secure Secret Storage"]
DataStack --> Vault
SearchStack --> Vault
style Internet fill:#4CAF50,stroke:#333,color:#fff
style Caddy fill:#2196F3,stroke:#333,color:#fff
style AuthStack fill:#9C27B0,stroke:#333,color:#fff
style DataStack fill:#FF9800,stroke:#333,color:#fff
style SearchStack fill:#00BCD4,stroke:#333,color:#fff
style ObsStack fill:#F44336,stroke:#333,color:#fff
style DiagStack fill:#8BC34A,stroke:#333,color:#fff
style DBTools fill:#3F51B5,stroke:#333,color:#fff
style PlatformStack fill:#E91E63,stroke:#333,color:#fff
style Backup fill:#607D8B,stroke:#333,color:#fff
style IDS fill:#D32F2F,stroke:#333,color:#fff
style Vault fill:#5E35B1,stroke:#333,color:#fff
๐ Data Flow Architecture
How data moves through the system from ingestion to visualization
graph LR
Source["๐ฅ Data Sources APIs Databases External Services"]
Source -->|Extract| Airbyte["๐ Airbyte ETL Data Integration Transformation Scheduling"]
Airbyte -->|Load| DataDB["๐๏ธ PostgreSQL Data Warehouse Production Data Historical Data"]
DataDB -->|Query| Analytics["๐ Analytics Engine Real-time Processing Aggregations Reports"]
Analytics -->|Metrics| Prometheus["๐ Prometheus Time-series Database Metrics Collection Retention: 7 days"]
Prometheus -->|Display| Grafana["๐ Grafana Visual Dashboards Alerting Multi-datasource"]
DataDB -->|Logs| Loki["๐ Loki Log Aggregation Structured Logs Query Interface"]
Loki -->|Display| Grafana
DataDB -->|Cache| Redis["โก Redis Session Cache Query Results Rate Limiting"]
Source -->|Search| SearXNG["๐ SearXNG Metasearch Engine Multiple Sources Result Aggregation"]
SearXNG -->|Cache| Redis
DataDB -->|Backup| Restic["๐พ Restic Daily Backups Encrypted Storage Point-in-time Recovery"]
DataDB -->|Security| Falco["๐จ Falco Runtime Monitoring Threat Detection Compliance Audit"]
Falco -->|Alerts| AlertManager["๐ AlertManager Alert Routing Notification Escalation"]
style Source fill:#4CAF50,stroke:#333,color:#fff
style Airbyte fill:#FF9800,stroke:#333,color:#fff
style DataDB fill:#3F51B5,stroke:#333,color:#fff
style Analytics fill:#F44336,stroke:#333,color:#fff
style Prometheus fill:#FF6F00,stroke:#333,color:#fff
style Grafana fill:#E91E63,stroke:#333,color:#fff
style Loki fill:#00BCD4,stroke:#333,color:#fff
style Redis fill:#9C27B0,stroke:#333,color:#fff
style SearXNG fill:#00BCD4,stroke:#333,color:#fff
style Restic fill:#607D8B,stroke:#333,color:#fff
style Falco fill:#D32F2F,stroke:#333,color:#fff
style AlertManager fill:#F57C00,stroke:#333,color:#fff
๐ Security Architecture
Multi-layered security approach protecting the entire infrastructure
graph TB
Users["๐ฅ Users"]
Users -->|HTTPS| Caddy["๐ Caddy Edge TLS 1.3 Let's Encrypt Security Headers Rate Limiting"]
Caddy -->|Verify| Authelia["๐ Authelia TOTP MFA Session Management 2FA Required"]
Authelia -->|Store| Vault["๐ HashiCorp Vault Secret Storage Access Control Encryption at Rest"]
Authelia -->|Access| AppStack["๐ Protected Services Microservices Databases APIs"]
AppStack -->|Monitor| Falco["๐จ Falco Runtime Security Process Monitoring File Integrity Network Anomalies Threat Detection"]
Falco -->|Alert| AlertManager["๐ Immediate Alerts Slack Notifications Email Notifications Escalation"]
AppStack -->|Backup| Restic["๐พ Encrypted Backups AES-256 Encryption Daily Snapshots Offsite Storage"]
Users -->|Logs| Promtail["๐ Log Collector Container Logs System Logs Application Logs"]
Promtail -->|Send| Loki["๐ Loki Centralized Logs Query & Search Audit Trail"]
Loki -->|Query| Grafana["๐ Security Dashboard Failed Auth Attempts Rate Limit Hits Falco Alerts"]
Vault -->|Manage| KeyRotation["๐ Key Rotation Automatic Cycling Compliance Audit Logging"]
style Users fill:#4CAF50,stroke:#333,color:#fff
style Caddy fill:#2196F3,stroke:#333,color:#fff
style Authelia fill:#9C27B0,stroke:#333,color:#fff
style Vault fill:#5E35B1,stroke:#333,color:#fff
style AppStack fill:#F44336,stroke:#333,color:#fff
style Falco fill:#D32F2F,stroke:#333,color:#fff
style AlertManager fill:#F57C00,stroke:#333,color:#fff
style Restic fill:#607D8B,stroke:#333,color:#fff
style Promtail fill:#FF6F00,stroke:#333,color:#fff
style Loki fill:#00BCD4,stroke:#333,color:#fff
style Grafana fill:#E91E63,stroke:#333,color:#fff
style KeyRotation fill:#5E35B1,stroke:#333,color:#fff
๐ณ Services Topology
Complete mapping of all 27 containerized services
graph TB
subgraph EDGE["๐ EDGE LAYER"]
Caddy["Caddy Reverse Proxy"]
Nginx["Nginx Web Server"]
end
subgraph AUTH["๐ AUTHENTICATION & SSO"]
Authelia["Authelia SSO"]
AuthDB["PostgreSQL Auth DB"]
end
subgraph DATA["๐ DATA STACK"]
Airbyte["Airbyte ETL"]
PostgreSQL["PostgreSQL Data WH"]
S3["S3 Storage Object Storage"]
end
subgraph SEARCH["๐ SEARCH STACK"]
SearXNG["SearXNG Metasearch"]
Elasticsearch["Elasticsearch Search Index"]
end
subgraph OBSERVABILITY["๐ OBSERVABILITY"]
Prometheus["Prometheus Metrics"]
Grafana["Grafana Dashboards"]
Loki["Loki Logs"]
AlertManager["AlertManager Alerts"]
NodeExp["Node Exporter Host Metrics"]
cAdvisor["cAdvisor Container Metrics"]
end
subgraph SECURITY["๐จ SECURITY & BACKUP"]
Falco["Falco Intrusion Detection"]
Restic["Restic Backups"]
Vault["Vault Secrets"]
Consul["Consul Service Discovery"]
end
subgraph TOOLS["๐ ๏ธ TOOLS & UTILITIES"]
CloudBeaver["CloudBeaver DB Manager"]
PgAdmin["PgAdmin DB Admin"]
Mermaid["Mermaid Diagrams"]
Dokploy["Dokploy Platform"]
Terraform["Terraform IaC"]
end
subgraph CACHE["โก CACHING"]
Redis["Redis Cache/Sessions"]
end
EDGE --> AUTH
EDGE --> DATA
EDGE --> SEARCH
EDGE --> OBSERVABILITY
EDGE --> TOOLS
AUTH --> Redis
AUTH --> Vault
DATA --> Redis
DATA --> Vault
SEARCH --> Redis
OBSERVABILITY --> AlertManager
SECURITY --> AlertManager
AUTH --> SECURITY
DATA --> SECURITY
SEARCH --> SECURITY
style EDGE fill:#2196F3,stroke:#333,color:#fff
style AUTH fill:#9C27B0,stroke:#333,color:#fff
style DATA fill:#FF9800,stroke:#333,color:#fff
style SEARCH fill:#00BCD4,stroke:#333,color:#fff
style OBSERVABILITY fill:#F44336,stroke:#333,color:#fff
style SECURITY fill:#D32F2F,stroke:#333,color:#fff
style TOOLS fill:#4CAF50,stroke:#333,color:#fff
style CACHE fill:#FFD700,stroke:#333,color:#000
๐ง Disaster Recovery & Continuity
Business continuity and disaster recovery procedures
graph TB
NormalOps["โ
Normal Operations All Services Running Daily Backups Continuous Monitoring"]
IncidentDetect["๐จ Incident Detection Monitoring Alerts Health Checks User Reports"]
Assessment["๐ Assessment Root Cause Analysis Impact Assessment RTO/RPO Check"]
NormalOps -->|Issue Detected| IncidentDetect
IncidentDetect -->|Verify| Assessment
Assessment -->|Service Restart| Recovery1["๐ Service Recovery Restart Failed Service Check Dependencies Verify Health"]
Assessment -->|Data Corruption| Recovery2["๐๏ธ Data Recovery Restore from Backup Verify Integrity Resume Operations"]
Assessment -->|Complete Failure| Recovery3["๐๏ธ Full Rebuild Deploy Infrastructure Restore All Data Failover Complete"]
Recovery1 --> Test1["โ
Testing Service Tests Integration Tests Smoke Tests"]
Recovery2 --> Test2["โ
Testing Data Validation Application Tests"]
Recovery3 --> Test3["โ
Testing Full Validation Load Testing"]
Test1 -->|Pass| NormalOps
Test2 -->|Pass| NormalOps
Test3 -->|Pass| NormalOps
Test1 -->|Fail| Escalate["๐ Escalation Manual Intervention Engineering Team"]
Test2 -->|Fail| Escalate
Test3 -->|Fail| Escalate
Escalate -->|Resolved| NormalOps
NormalOps -->|Periodic| DRTest["๐งช DR Testing Monthly Backups Test Failover Drills Documentation Update"]
DRTest --> NormalOps
style NormalOps fill:#4CAF50,stroke:#333,color:#fff
style IncidentDetect fill:#F57C00,stroke:#333,color:#fff
style Assessment fill:#FF9800,stroke:#333,color:#fff
style Recovery1 fill:#2196F3,stroke:#333,color:#fff
style Recovery2 fill:#00BCD4,stroke:#333,color:#fff
style Recovery3 fill:#9C27B0,stroke:#333,color:#fff
style Test1 fill:#4CAF50,stroke:#333,color:#fff
style Test2 fill:#4CAF50,stroke:#333,color:#fff
style Test3 fill:#4CAF50,stroke:#333,color:#fff
style Escalate fill:#D32F2F,stroke:#333,color:#fff
style DRTest fill:#5E35B1,stroke:#333,color:#fff
๐ Deployment Pipeline & Updates
Continuous deployment and infrastructure updates workflow
graph LR
Dev["๐จ๐ป Developer Code Push"]
Dev -->|Git Push| Repo["๐ฆ Git Repository Main Branch Docker Images"]
Repo -->|Webhook| Build["๐จ Build Pipeline Docker Build Image Scan Security Check"]
Build -->|Success| Registry["๐ฆ Docker Registry Container Images Version Tags"]
Build -->|Fail| Notify1["๐ง Notify Dev Build Failed Logs Available"]
Notify1 -->|Fix & Push| Repo
Registry -->|Deploy| Dev1["๐งช Dev Environment Test Deployment Smoke Tests Integration Tests"]
Dev1 -->|Pass| Staging["๐ Staging Environment Full Testing Performance Tests Security Scan"]
Dev1 -->|Fail| Notify2["โ ๏ธ Build Issue Testing Failed Rollback Container"]
Staging -->|Pass| Approval["โ
Approval Gate Manual Review Change Log Rollback Plan"]
Staging -->|Fail| Notify2
Approval -->|Approved| Prod["๐ Production Blue-Green Deploy Health Checks Gradual Rollout"]
Approval -->|Rejected| Cancel["โ Deployment Cancelled Continue Testing Fix Issues"]
Cancel -->|Ready| Approval
Prod -->|Success| Monitor["๐ Monitor Metrics Logs Alerts"]
Prod -->|Failure| Rollback["โฎ๏ธ Rollback Previous Version Incident Report Postmortem"]
Rollback -->|Analyze| Repo
Monitor -->|Healthy| NormalOps["โ
Normal Operations Continuous Monitoring"]
style Dev fill:#4CAF50,stroke:#333,color:#fff
style Repo fill:#2196F3,stroke:#333,color:#fff
style Build fill:#FF9800,stroke:#333,color:#fff
style Registry fill:#00BCD4,stroke:#333,color:#fff
style Dev1 fill:#9C27B0,stroke:#333,color:#fff
style Staging fill:#E91E63,stroke:#333,color:#fff
style Approval fill:#5E35B1,stroke:#333,color:#fff
style Prod fill:#2196F3,stroke:#333,color:#fff
style Monitor fill:#F44336,stroke:#333,color:#fff
style Rollback fill:#D32F2F,stroke:#333,color:#fff
style NormalOps fill:#4CAF50,stroke:#333,color:#fff
style Notify1 fill:#F57C00,stroke:#333,color:#fff
style Notify2 fill:#F57C00,stroke:#333,color:#fff
style Cancel fill:#FF6F00,stroke:#333,color:#fff