Skip to main content

homelab diagram

%%{init: {'theme': 'dark', 'themeVariables': { 'lineColor': '#eceff1', 'textColor': '#eceff1', 'mainBkg': '#263238', 'nodeBorder': '#eceff1' }}}%%
flowchart TD
    %% --- Styles ---
    classDef cloud fill:#01579b,stroke:#4fc3f7,stroke-width:2px,color:#e1f5fe
    classDef home fill:#1b5e20,stroke:#66bb6a,stroke-width:2px,color:#e8f5e9
    classDef device fill:#37474f,stroke:#eceff1,stroke-width:2px,rx:5,ry:5,color:#ffffff
    classDef service fill:#263238,stroke:#90a4ae,stroke-width:1px,stroke-dasharray: 5 5,color:#b0bec5

    %% --- External World ---
    Internet((Internet))
    style Internet fill:#ffffff,stroke:#333,color:#000

    %% --- Oracle Cloud ---
    subgraph OracleCloud [Oracle Cloud - Free Tier]
        direction TB
        
        subgraph PhoenixBox [Phoenix - Intel VM]
            class PhoenixBox device
            Phoenix(Phoenix<br/>Ubuntu 24.04<br/>10.0.0.93)
            style Phoenix fill:#37474f,stroke:none
            
            subgraph PhoenixSvcs [Services]
                P_Traefik[Traefik Proxy<br/>'The Front Door']
                P_WG[WG Interface<br/>10.8.0.1]
                
                subgraph PhoenixApps [Local Apps]
                   P_Kuma[Uptime Kuma]
                   P_Dash[Traefik Dashboard]
                end
            end
        end

        subgraph DobbyBox [Dobby - ARM VM]
            class DobbyBox device
            Dobby(Dobby<br/>GameNode2<br/>10.0.0.100)
            style Dobby fill:#37474f,stroke:none
            
            subgraph DobbySvcs [Services]
                D_Wing[Pterodactyl Wing]
                D_MC[Minecraft Cluster<br/>PO3 / ATM10 / Bedrock]
            end
        end
    end

    %% --- Home Network ---
    subgraph HomeNet [Home Network - Deltona<br/>192.168.120.0/22]
        direction TB
        Unifi[Unifi Router<br/>Gateway]
        class Unifi device

        subgraph FireboltBox [Firebolt - Ubuntu Server]
            class FireboltBox device
            Firebolt(Firebolt<br/>GameNode3<br/>192.168.123.4)
            style Firebolt fill:#37474f,stroke:none
            
            subgraph FireboltSvcs [Services]
                F_Traefik[Traefik<br/>Internal Router]
                F_WG[WG Interface<br/>10.8.0.5]
                
                %% Stack: Infrastructure
                subgraph FireboltInfra [Infrastructure]
                   F_Auth[Authentik IDP]
                   F_MySQL[MySQL DB]
                   F_Homepage[Homepage Dashboard]
                   F_Watchtower[Watchtower]
                   F_Autoheal[Autoheal]
                   F_Portainer[Portainer]
                end

                %% Stack: Admin Tools
                subgraph FireboltAdmin [Admin Tools]
                   F_Bitwarden[Vaultwarden]
                   F_Bookstack[BookStack Wiki]
                   F_Duplicati[Duplicati Backup]
                   F_FileBrowser[FileBrowser]
                   F_PMA[phpMyAdmin]
                end

                %% Stack: Media (Plex)
                subgraph FireboltMedia [Media Stack]
                   F_Plex[Plex Media Server]
                   F_Sonarr[Sonarr]
                   F_Radarr[Radarr]
                   F_Prowlarr[Prowlarr]
                   F_Overseerr[Overseerr]
                   F_Tautulli[Tautulli]
                   F_Unpackerr[Unpackerr]
                   F_Qbit[qBittorrent (VPN)]- VPN]
                   F_Flaresolverr[FlareSolverr]
                   F_Doplarr[Doplarr]
                end

                %% Stack: Games
                subgraph FireboltGames [Games Stack]
                   F_PteroPanel[Pterodactyl Panel]
                   F_PteroWing[Pterodactyl Wing]
                   F_PteroDB[MariaDB (Panel)]- Panel]
                   F_PteroRedis[Redis (Panel)]- Panel]
                end
            end
        end

        subgraph NorbertBox [Norbert - Unraid 7.x]
            class NorbertBox device
            Norbert(Norbert<br/>GameNode1<br/>192.168.123.3)
            style Norbert fill:#37474f,stroke:none
            
            subgraph NorbertSvcs [Services]
                N_Storage[Media Storage]
                N_WG[WG Interface<br/>10.8.0.2]
                
                subgraph NorbertApps [Apps]
                    N_Wing[Pterodactyl Wing]
                    N_ArkBot[Ark Discord Bot]
                    N_MCTest[Minecraft Test]
                    N_Hass[Home Assistant VM<br/>192.168.123.108]
                end
            end
        end

        subgraph PiHoleBox [Raspberry Pi]
            class PiHoleBox device
            PiHole(PiHole<br/>192.168.123.107)
            style PiHole fill:#37474f,stroke:none
            
            subgraph PiApps [Services]
                PI_SVC[DNS Sinkhole]
            end
        end
    end

    %% --- WEB TRAFFIC FLOW ---
    Internet == HTTPS ==> P_Traefik

    %% Path 1: Local
    P_Traefik --> P_Kuma & P_Dash

    %% Path 2: TCP Passthrough (The Main Pipe)
    P_Traefik --> P_WG
    P_WG ==>|Tunnel<br/>TCP Pass - SNI| F_WG
    F_WG --> F_Traefik
    
    %% Path 3: Firebolt Internal Routing (LAN Proxy)
    F_Traefik --> F_Auth & F_Homepage & F_Portainer
    F_Traefik --> F_Bitwarden & F_Bookstack & F_Duplicati & F_FileBrowser & F_PMA
    F_Traefik --> F_Plex & F_Sonarr & F_Radarr & F_Prowlarr & F_Overseerr & F_Tautulli & F_Qbit
    F_Traefik --> F_PteroPanel & F_PteroWing

    F_Traefik -.->|LAN Proxy| N_Hass
    F_Traefik -.->|LAN Proxy| PI_SVC
    F_Traefik -.->|LAN Proxy| N_ArkBot

    %% Path 4: Phoenix Direct Routing (GameNode1 Exclusive)
    P_WG -.->|Tunnel<br/>Direct HTTP| N_WG
    N_WG -.-> N_Wing

    %% --- GAME TRAFFIC FLOW ---
    Internet -- MC Ports --> D_MC
    Internet -- Game Ports --> Unifi
    Unifi -- Port Fwd --> F_PteroWing
    Unifi -- Port Fwd --> N_MCTest

    %% --- Internal Management ---
    FireboltMedia -.->|NFS/SMB| N_Storage
    F_PteroPanel -.->|API Control| F_PteroWing & N_Wing & D_Wing

    %% Styles
    class OracleCloud cloud
    class HomeNet home
    class P_Traefik,F_Traefik,P_WG,F_WG,N_WG service