Skip to main content

homelab diagram

%%{init: {'theme': 'dark'base', 'themeVariables': { 'primaryColor': '#263238', 'primaryTextColor': '#fff', 'primaryBorderColor': '#78909c', 'lineColor': '#eceff1'#b0bec5', 'textColor'tertiaryColor': '#eceff1'#fff', 'mainBkg': '#263238', 'nodeBorder': '#eceff1' }}}%%
flowchart TD
    %% --- StylesColor Definitions (High Contrast) ---
    classDef cloud fill:#01579b,#0d47a1,stroke:#4fc3f7,#64b5f6,stroke-width:2px,color:#e1f5fe#fff
    classDef home fill:#1b5e20,stroke:#66bb6a,#81c784,stroke-width:2px,color:#e8f5e9#fff
    classDef device fill:#37474f,stroke:#eceff1,stroke-width:2px,rx:5,ry:5,color:#ffffff#fff
    classDef stack fill:#263238,#212121,stroke:#546e7a,#607d8b,stroke-width:1px,stroke-dasharray: 5 5,color:#b0bec5#eceff1

    %% --- ExternalInternet WorldEntry ---
    Internet((Internet))
    style Internet fill:#ffffff,#fff,stroke:#333,color:#000

    %% ==========================================
    %% 1. ORACLE CLOUD (TopTOP Layer)FLOOR)
    %% ==========================================
    subgraph OracleCloud [Oracle Cloud - Free Tier]
        direction TB
        
        %% --- Phoenix ---and Dobby Side-by-Side (Small enough to fit)
        subgraph PhoenixBox [Phoenix - Intel VM]
            class PhoenixBox device
            direction TB
            P_Traefik[Traefik Proxy]
            
            subgraph PhoenixInfra [Infrastructure]
                class PhoenixInfra stack
                P_Traefik[Traefikdirection Proxy]TB
                P_WG[WG Interface 10.8.0.1]
                P_Fail2Ban[Fail2Ban]
                P_Watchtower[Watchtower]
                P_Agent[Portainer Agent]
            end
            
            subgraph PhoenixApps [Local Apps]
               class PhoenixApps stack
               P_Kuma[Uptime Kuma]
               P_Dash[Traefik Dashboard]
            end
        end

        %% --- Dobby ---

        subgraph DobbyBox [Dobby - ARM VM]
            class DobbyBox device
            direction TB
            
            subgraph DobbySvcs [Services]
                class DobbySvcs stack
                direction TB
                D_Wing[Pterodactyl Wing]
                D_Agent[Portainer Agent]
                D_MC[Minecraft Cluster]
            end
        end
    end

    %% ==========================================
    %% 2. HOME NETWORK (BottomLOWER Layer)FLOORS)
    %% ==========================================
    subgraph HomeNet [Home Network - Deltona]
        direction TB
        Unifi[Unifi Router]
        class Unifi device

        %% --- Floor 1: Firebolt (The HeavyMain Lifter)Server) ---
        subgraph FireboltBox [Firebolt - Ubuntu Server]
            class FireboltBox device
            direction TB
            
            F_Traefik[Traefik Internal]
            F_WG[WG Interface 10.8.0.5]

            %% Note: I removed the intermediate 'Services' box to save space
            
            subgraph FireboltInfra [Infrastructure]
               class FireboltInfra stack
               direction TB
               F_Auth[Authentik IDP]
               F_MySQL[MySQL DB]
               F_Homepage[Homepage]
               F_Portainer[Portainer Server]
               F_Autoheal[Autoheal]
            end

            subgraph FireboltAdmin [Admin Tools]
               class FireboltAdmin stack
               direction TB
               F_Bitwarden[Vaultwarden]
               F_Bookstack[BookStack Wiki]
               F_Duplicati[Duplicati]
               F_FileBrowser[FileBrowser]
               F_PMA[phpMyAdmin]
            end

            subgraph FireboltMedia [Media Stack]
               class FireboltMedia stack
               direction TB
               %% Grouping slightly to save vertical space
               F_Plex[Plex Media Server]
               F_Arr[Sonarr / Radarr / Prowlarr]
               F_Overseerr[Overseerr]
               F_Sonarr[Sonarr]
               F_Radarr[Radarr]
               F_Prowlarr[Prowlarr]
               F_Tautulli[Tautulli]
               F_Download[qBitF_Unpackerr[Unpackerr]
               /F_Qbit[qBittorrent Unpackerr- /VPN]
               Flare]F_Flaresolverr[FlareSolverr]
               F_Doplarr[Doplarr]
            end

            subgraph FireboltGames [Games Stack]
               class FireboltGames stack
               direction TB
               F_PteroPanel[Pterodactyl Panel]
               F_PteroWing[Pterodactyl Wing]
               F_PteroDB[Panel DB & Redis]
            end
        end

        %% --- Floor 2: Norbert (Storage & Aux) ---
        subgraph NorbertBox [Norbert - Unraid]
            class NorbertBox device
            direction TB
            
            N_WG[WG Interface 10.8.0.2]
            
            subgraph NorbertInfra [Infra & Apps]
                class NorbertInfra stack
                N_Agent[Portainer Agent]
                N_Hass[Home Assistant VM]
                N_LLM[LLMCord AI]
            end

            subgraph NorbertGames [Game Node]
                class NorbertGames stack
                N_Wing[Pterodactyl Wing]
                N_ArkBot[Ark Discord Bot]
                N_MCTest[Minecraft Test]
            end
            
            N_Storage[Media Storage]
        end

        %% --- Floor 3: PiHole (Utility) ---
        subgraph PiHoleBox [Raspberry Pi]
            class PiHoleBox device
            direction TB
            PI_SVC[DNS Sinkhole]
            PI_VPN[PiVPN Ingress]
        end
    end

    %% ==========================================
    %% ALIGNMENT &(THE MAGIC STACKING)
    %% ==========================================
    
    %% 1. Force Oracle ABOVE Home
    OracleCloud ~~~ HomeNet
    
    %% 2. Force Firebolt ABOVE Norbert ABOVE PiHole
    FireboltBox ~~~ NorbertBox ~~~ PiHoleBox
    
    %% 3. Force Internal Stacks
    FireboltInfra ~~~ FireboltAdmin ~~~ FireboltMedia ~~~ FireboltGames

    %% ==========================================
    %% CONNECTIONS
    %% ==========================================
    
    %% ForceInternet Fireboltto Vertical Stack (Crucial for width control)
    F_Traefik ~~~ FireboltInfra ~~~ FireboltAdmin ~~~ FireboltMedia ~~~ FireboltGames
    
    %% Traffic FlowsCloud
    Internet == HTTPS ==> P_Traefik
    
    %% TheCloud Tunnelto Home (Tunnel)
    P_Traefik --> P_WG
    P_WG ==>|Tunnel| F_WG
    F_WG --> F_Traefik
    
    %% Internal Routing (Simplified arrowsfor toclean groups instead of individual apps to reduce clutter)lines)
    F_Traefik --> FireboltInfra & FireboltAdmin & FireboltMedia & FireboltGames
    F_Traefik -.->|LAN Proxy| N_Hass & PI_SVC
    
    %% Split Routing (GameNode1)
    P_WG -.->|Direct| N_WG
    N_WG -.-> NorbertGames

    %% Game Ports
    Internet -- Ports --> DobbySvcs
    Internet -- Ports --> Unifi
    Unifi -- Port Fwd --> FireboltGames
    Unifi -- Port Fwd --> NorbertGames
    Unifi -- Port Fwd --> PI_VPN

    %% Management Links
    F_Portainer -.->|Manage| P_Agent & D_Agent & N_Agent
    FireboltMedia -.->|NFS| N_Storage

    %% Styles
    class OracleCloud cloud
    class HomeNet home