Post

๐Ÿ  My Homelab Infrastructure - Self-Hosted Services & Learning Lab

๐Ÿ  My Homelab Infrastructure - Self-Hosted Services & Learning Lab

๐Ÿ  My Homelab Infrastructure

By Ahmed โ€ข September 21, 2024

Homelab Infrastructure

Welcome to my homelab journey! This is where I experiment with self-hosted services, learn new technologies, and build my personal cloud infrastructure. From media streaming to network monitoring, I run everything locally for privacy, learning, and pure enjoyment.

๐ŸŽฏ What is a Homelab?

A homelab is a personal environment where you can experiment with hardware and software without the constraints of production systems. Itโ€™s your playground for learning, testing new technologies, and hosting services for your home network.

Whether itโ€™s a single Raspberry Pi running Pi-hole or a full server rack with enterprise hardware, the goal remains the same: hands-on learning and practical experience with real-world technologies.

๐Ÿ–ฅ๏ธ My Hardware Setup

Proxmox Nodes

  • PVE1 (Primary): Dell PowerEdge R720 - Main virtualization host
  • Ahmed2 (Secondary): HP ProLiant DL380 - Backup and clustering node

Kubernetes Cluster

  • Control Plane: Lenovo ThinkCentre M710q Tiny (Intel i3, 16GB RAM)
  • Worker Nodes: 2x Raspberry Pi 4 (4GB RAM each)

Storage & Networking

  • Storage: 8TB RAID-10 array for VM storage
  • Network: pfSense firewall, managed switches, and VLANs
  • Backup: Automated daily backups to external storage

๐Ÿ”ง Self-Hosted Applications

Here are the key services running in my homelab:

๐Ÿ“บ Media Services

Plex Media Server

Personal Netflix alternative with hardware transcoding support.

  • Access: plex.tv
  • Features: 4K transcoding, mobile apps, remote access
  • Storage: 4TB media library

Jellyfin

Open-source media server with no subscription requirements.

  • Access: jellyfin.org
  • Features: Free forever, hardware acceleration, live TV

๐Ÿ  Home Automation

Home Assistant

Central hub for all smart home devices and automation.

  • Access: home-assistant.io
  • Integrations: 50+ smart devices
  • Automations: Lighting, climate, security systems

๐Ÿ›ก๏ธ Network & Security

Pi-hole

Network-wide ad blocker and DNS sinkhole.

  • Access: pi-hole.net
  • Features: Block ads across all devices
  • Stats: 30%+ of requests blocked daily

Bitwarden

Self-hosted password manager for secure credential storage.

  • Access: bitwarden.com
  • Features: End-to-end encryption, family sharing
  • Security: Self-hosted for complete control

๐Ÿ“Š Monitoring & Management

Grafana

Beautiful dashboards for monitoring all infrastructure metrics.

  • Access: grafana.com
  • Data Sources: Prometheus, InfluxDB, MySQL
  • Dashboards: 15+ custom monitoring dashboards

Prometheus

Time-series database for collecting and storing metrics.

  • Access: prometheus.io
  • Metrics: System resources, application performance
  • Alerts: Real-time notifications for issues

Portainer

Docker container management made simple.

  • Access: portainer.io
  • Features: Web-based Docker management
  • Containers: 30+ running containers managed

โ˜๏ธ Cloud Services

Nextcloud

Personal cloud storage and collaboration platform.

  • Access: nextcloud.com
  • Features: File sync, calendar, contacts, notes
  • Storage: 2TB personal cloud storage

Nginx Proxy Manager

Reverse proxy with automatic SSL certificate management.

  • Access: nginxproxymanager.com
  • Features: Auto SSL, custom domains, access control
  • Certificates: Letโ€™s Encrypt integration

๐ŸŽฎ Entertainment & Media

Sonarr & Radarr

Automated TV show and movie collection management.

๐Ÿ“ˆ Infrastructure Monitoring

System Metrics

  • CPU Usage: Average 15-25% across all nodes
  • Memory: 60-70% utilization during peak hours
  • Storage: 4TB total, 65% utilized
  • Network: 1Gbps backbone, 100Mbps internet

Service Uptime

  • Overall Uptime: 99.8% across all services
  • Planned Maintenance: Monthly update windows
  • Backup Status: Daily automated backups successful
  • Security Updates: Auto-applied for critical patches

๐Ÿ”ง Technology Stack

Virtualization & Containers

1
2
3
4
5
platforms:
  virtualization: "Proxmox VE 8.0"
  containers: "Docker & Docker Compose"
  orchestration: "Kubernetes (K3s)"
  storage: "ZFS with snapshots"

Networking

1
2
3
4
5
network:
  firewall: "pfSense with VLANs"
  dns: "Pi-hole + Unbound"
  vpn: "WireGuard for remote access"
  monitoring: "PRTG Network Monitor"

Automation

1
2
3
4
5
automation:
  configuration: "Ansible playbooks"
  monitoring: "Prometheus + Grafana"
  backups: "Restic + Rclone"
  updates: "Watchtower for containers"

๐Ÿš€ Future Plans

Upcoming Projects

  • AI/ML Lab: TensorFlow Serving on Kubernetes
  • Edge Computing: Additional Raspberry Pi nodes
  • Security Lab: Vulnerability scanning and SIEM
  • Development: GitLab CE for code repositories

Hardware Upgrades

  • Storage Expansion: Add 10TB NAS for long-term archival
  • Network Upgrade: 10Gbps backbone infrastructure
  • Power Management: UPS systems for clean shutdowns
  • Cooling: Improved ventilation for summer months

๐Ÿ“š Learning Resources

Documentation

All configurations, scripts, and documentation are available in my GitHub repository:

Repository: github.com/ahmed86-star/Homelab

What Youโ€™ll Find

  • Docker Compose files for all services
  • Ansible playbooks for automation
  • Network diagrams and architecture docs
  • Troubleshooting guides and best practices

๐Ÿ’ก Key Takeaways

Building a homelab has been an incredible learning journey. Here are the most important lessons:

  1. Start Small: Begin with one service and gradually expand
  2. Document Everything: Future you will thank present you
  3. Monitor Proactively: Know when things break before users do
  4. Backup Religiously: Test your backups regularly
  5. Security First: Keep everything updated and secured

๐ŸŒ Connect With Me

Want to discuss homelab projects or need advice on self-hosting?

๐Ÿ“Š Current Service Status

All services are monitored in real-time with automated health checks:

Service Status Uptime Notes
Plex Media Server ๐ŸŸข Online 99.9% Hardware transcoding active
Home Assistant ๐ŸŸข Online 99.8% 50+ devices connected
Pi-hole ๐ŸŸข Online 99.9% Blocking 30% of requests
Nextcloud ๐ŸŸข Online 99.7% 2TB storage, 5 users
Bitwarden ๐ŸŸข Online 99.9% Secure vault operational
Grafana ๐ŸŸข Online 99.8% 15 dashboards active
Proxmox Cluster ๐ŸŸข Online 99.9% HA configuration active

*Last updated: September 21, 2024 Built with passion for learning and self-hosting ๐Ÿš€*
This post is licensed under CC BY 4.0 by the author.