Skip to content

Infrastructure Overview ​

This section provides a comprehensive view of the 28-container homelab infrastructure, built on Proxmox VE and managed through GitOps principles.

đŸ—ī¸ Architecture Summary ​

The infrastructure consists of 28 LXC containers organized into four main service categories, all managed through Infrastructure as Code using Terraform and Ansible.

Service Distribution ​

9
Media Stack
Plex, *arr automation, torrents
9
Monitoring
Grafana, Prometheus, Loki, alerts
4
Security
SWAG, Wireguard, Vaultwarden
6
Business
Odoo, Immich, Paperless, storage

đŸ–Ĩī¸ Platform Details ​

Virtualization Layer ​

  • Platform: Proxmox VE 8.14 on Linux 6.14.8-2-pve
  • Container Technology: LXC (Linux Containers)
  • Host Resources: 32GB RAM, 99% utilization optimization
  • Storage: ZFS pool with 10TB shared data, 128GB Docker volumes

Operating Systems ​

  • Debian 13 "Trixie": Primary OS for most containers
  • Ubuntu 25.04 "Plucky": Selected services requiring newer packages
  • Alpine 3.22.1: Lightweight containers for efficiency

🌐 Network Architecture ​

Dual Bridge Configuration ​

Network Segmentation ​

  • Primary Network (vmbr0): 192.168.0.x/24 - All containers with direct internet
  • VPN Network (vmbr1): 10.10.10.x/24 - Isolated torrent traffic through Wireguard
  • Firewall Rules: 10+ containers with specific port access controls

💾 Storage Configuration ​

ZFS Storage Pool ​

  • Shared Data Volume: 10TB for media and application data
  • Docker Volumes: 128GB dedicated for containerized applications
  • Monitoring Storage: Specialized 64GB volume for logs and metrics
  • Backup Strategy: Automated snapshots with 7-day retention

Mount Point Strategy ​

Container Mount Patterns:
├── /data          → 10TB shared storage (media, documents)
├── /docker        → 128GB container volumes  
├── /monitoring    → 64GB specialized logging storage
└── /backups       → Automated backup destinations

🔧 Resource Allocation ​

High-Performance Containers ​

ContainerRAMCoresSpecial Features
Plex4GB2GPU passthrough, privileged
Immich4GB4GPU passthrough, privileged
Immich Backup9GB4Stopped by default

Standard Allocation ​

  • Media Services: 512MB-2GB RAM, 1-2 cores
  • Monitoring Stack: 256MB-2GB RAM optimized for efficiency
  • Security Services: 512MB-2GB RAM with network focus
  • Business Apps: 1-2GB RAM for database-backed applications

🚀 GitOps Implementation ​

Infrastructure as Code ​

  • Terraform: Complete container definitions and resource allocation
  • Ansible: Service configuration and application deployment
  • GitHub Actions: Automated testing, planning, and deployment
  • Version Control: All infrastructure changes tracked and reviewable

Deployment Workflow ​

📊 Key Metrics ​

99.9%
Uptime
30.75GB
RAM Allocated
103GB
Storage Freed
31 Days
Log Retention

🔄 Automation Features ​

Self-Healing Infrastructure ​

  • Automated Container Restart: Failed services auto-recover
  • Resource Monitoring: Proactive alerts at 90% thresholds
  • Backup Automation: Daily snapshots with intelligent retention
  • Update Management: Mass upgrade capability across all containers

Intelligent Alerting ​

  • Critical Alerts 🔴: Container failures, storage issues
  • Warning Alerts 🟡: Resource thresholds, service degradation
  • Info Notifications â„šī¸: Deployment status, system updates
  • Success Confirmations ✅: Backup completion, service recovery

Enterprise-Grade Homelab Infrastructure