Add a new post about my infrastructure

This commit is contained in:
2025-07-19 18:05:26 +03:00
parent f1edcb8e54
commit 45329aee74

View File

@ -0,0 +1,105 @@
---
title: "My Personal Server Infrastructure: A Project I'm Proud Of"
date: 2025-07-19 14:30:00 +0300
tags: self-hosting infrastructure server homelab docker automation
excerpt: "How I built a comprehensive personal server infrastructure with automated deployments, private networking, and self-hosted applications that I use daily."
---
When people ask me about a project I'm proud of, I don't usually mention a traditional software project with a clear beginning and end. Instead, I talk about something that's been evolving for years and has become an integral part of my daily digital life: **my personal server infrastructure**.
This isn't just a hobby project—it's a living, breathing ecosystem of applications and services that I use every single day. From automatic deployments of my personal projects to a private VPN connecting all my devices, this infrastructure has become the backbone of my digital workflow.
## The Hardware Setup
My infrastructure spans multiple devices, each serving a specific purpose:
- **VPS (Virtual Private Server)**: The main server hosting most applications
- **Raspberry Pi**: Home server for local services and backup
- **Personal laptop**: Development machine and network client
- **Mobile phone**: Always-connected client with full network access
The beauty of this setup is that every device can seamlessly communicate with every other device, regardless of location or network restrictions.
## The Core Components
### 1. Private Network with Headscale
The foundation of everything is **Headscale**, an open-source alternative to Tailscale's control server. This creates a private mesh network connecting all my devices.
Here's how it works:
- Install Tailscale client on each device
- Connect all devices to my Headscale server
- Every device gets a private IP and can reach every other device
- My VPS acts as an exit node, giving me a free personal VPN
No more port forwarding, no more remembering IP addresses, no more VPN subscriptions. Just seamless connectivity everywhere.
### 2. Automated Deployment Pipeline
One of the features I'm most proud of is my automated deployment system. Here's the workflow:
1. **Write code** or create content (like blog posts)
2. **Push to GitHub**
3. **GitHub Actions** automatically builds Docker images
4. **Webhook notification** sent to my server
5. **Server pulls** the new image and deploys using Docker Compose
6. **New version goes live** automatically
This means I can write code or create a blog post, push to GitHub, and watch the updates go live within minutes—no manual deployment steps required.
The projects that benefit from this automated deployment include:
- [sahinakkaya.dev](https://sahinakkaya.dev) - My personal website and blog
- [blackjack.sahinakkaya.dev](https://blackjack.sahinakkaya.dev) - A blackjack game implementation
- [progress.sahinakkaya.dev](https://progress.sahinakkaya.dev) - Progress tracking application
### 3. Authentication Gateway
Security is crucial when self-hosting, so I run a centralized authentication system that protects all my applications. This gives me:
- Single sign-on across all self-hosted services
- Fine-grained access control
- Protection against unauthorized access
- Easy user management
### 4. Comprehensive Monitoring
I monitor everything with comprehensive tools that track uptime for all applications on both servers, send Telegram notifications when services go down, aggregate and display logs from all services, and monitor overall system health.
Getting a Telegram message at 3 AM because a service is down might not sound fun, but knowing about issues immediately means I can fix them before they impact my workflow.
## The Self-Hosted Application Suite
Over time, I've built up an impressive collection of self-hosted applications that replace traditional SaaS services:
### Media & Entertainment
Instead of paying for multiple streaming subscriptions, I run my own media server with tools for streaming my personal collection, tracking what I've watched, and managing my book library. This gives me complete control over my content without recurring fees.
### Productivity & Personal Management
Rather than trusting third-party services with my personal data, I self-host my task management, note-taking, knowledge base, personal finance tracking, and password management. This ensures my sensitive information stays private and accessible only to me.
### Development & Technical Tools
My development workflow is entirely self-contained with private Git hosting, file management systems, document processing tools, and various utilities. This eliminates dependencies on external services and gives me full control over my code and projects.
### Infrastructure & Monitoring
The foundation that makes everything work includes authentication, networking, web traffic management, container orchestration, health monitoring, and automated backups. These tools ensure everything runs smoothly and securely while giving me complete visibility into how my systems are performing.
## Building Custom Solutions
When existing tools don't meet my specific needs, I build exactly what I want and publish it on GitHub. This approach gives me complete control over functionality without vendor lock-in while providing valuable learning opportunities.
## Why I'm Proud of This Project
This infrastructure project represents several things I value:
**Continuous Learning**: Every component teaches me something new about networking, DevOps, security, or system administration.
**Practical Value**: Unlike many side projects that gather dust, I use this infrastructure daily. Every improvement has immediate, tangible benefits.
**Complete Ownership**: I control my data, my services, and my digital environment. No surprise subscription price increases or feature removals.
**Technical Growth**: Managing this infrastructure has made me a better engineer, teaching me about scaling, reliability, monitoring, and automation.
**Cost Efficiency**: What would cost hundreds of dollars monthly in SaaS subscriptions runs on a single VPS for a fraction of the cost.
## Conclusion
Self-hosting has become one of my greatest passions, giving me complete control over my digital infrastructure while teaching me valuable skills along the way. This ongoing project represents the perfect blend of practical utility and continuous learning that makes it deeply rewarding.