homelab diagram
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#263238', 'primaryTextColor': '#fff', 'primaryBorderColor': '#fff', 'lineColor': '#b0bec5', 'tertiaryColor': '#fff', 'mainBkg': '#1e1e1e'}}}%%
flowchart LR
%% ==========================================
%% 1. GLOBAL STYLES (HighDark Contrast)Mode Enforced)
%% ==========================================
%% These definitions override your Wiki's default theme
classDef cloud fill:#0d47a1,stroke:#fff,stroke-width:2px,3px,color:#fff
classDef home fill:#1b5e20,stroke:#fff,stroke-width:2px,3px,color:#fff
classDef server fill:#37474f,stroke:#90a4ae,#fff,stroke-width:2px,color:#fff
classDef stack fill:#263238,stroke:#546e7a,#90a4ae,stroke-width:1px,stroke-dasharray: 5 5,color:#eceff1#fff
%% TrafficConnection Line StylesDefaults
linkStyle default stroke:#607d8b,#b0bec5,stroke-width:1px;
%% ==========================================
%% 2. THE SOURCE (Far Left)
%% ==========================================
Internet((Internet))
style Internet fill:#fff,stroke:#333,color:#000
%% ==========================================
%% 3. LOCATION: ORACLE CLOUD (Top Lane)
%% ==========================================
subgraph OracleCloud [Oracle Cloud - Free Tier]
direction TB
%% Force Deep Blue Background
style OracleCloud fill:#1565c0,#0d47a1,stroke:#fff,stroke-width:2px,3px,color:#fff
%% --- PHOENIX (The Gateway) ---
subgraph PhoenixBox [Phoenix - Gateway]
direction TB
class PhoenixBox server
P_Traefik[Traefik Proxy]
P_WG[WireGuard Interface]
subgraph P_Infra [Infrastructure]
class P_Infra stack
direction TB
P_Fail2Ban[Fail2Ban]
P_Agent[Portainer Agent]
end
end
%% --- DOBBY (The Game Node) ---
subgraph DobbyBox [Dobby - Game Node]
direction TB
class DobbyBox server
subgraph D_Games [Game Stack]
class D_Games stack
direction TB
D_Wing[Pterodactyl Wing]
D_MC[Minecraft Cluster]
end
D_Agent[Portainer Agent]
end
end
%% ==========================================
%% 4. LOCATION: HOME NETWORK (Bottom Lane)
%% ==========================================
subgraph HomeNet [Home Network - Deltona]
direction TB
%% Force Deep Green Background
style HomeNet fill:#2e7d32,#1b5e20,stroke:#fff,stroke-width:2px,3px,color:#fff
%% --- UNIFI (The Router) ---
Unifi[Unifi Router]:::server
%% --- FIREBOLT (The Core) ---
subgraph FireboltBox [Firebolt - Main Server]
direction TB
class FireboltBox server
F_Traefik[Traefik Internal]
F_WG[WireGuard Interface]
%% Visual Stacks organized visually
subgraph F_Stacks [Apps & Services]
direction TB
style F_Stacks fill:none,stroke:none
subgraph F_Infra [Infrastructure]
class F_Infra stack
F_Auth[Authentik]
F_Portainer[Portainer]
F_Homepage[Homepage]
end
subgraph F_Media [Media Stack]
class F_Media stack
F_Plex[Plex]
F_Arr[Sonarr/Radarr]
F_Down[qBit/VPN]
end
subgraph F_Admin [Admin Tools]
class F_Admin stack
F_Bit[Vaultwarden]
F_Book[BookStack]
F_Dup[Duplicati]
end
subgraph F_GameStack [Game Stack]
class F_GameStack stack
F_Panel[Ptero Panel]
F_Wing[Ptero Wing]
end
end
end
%% --- NORBERT (Storage) ---
subgraph NorbertBox [Norbert - Storage]
direction TB
class NorbertBox server
N_WG[WireGuard]
N_Store[Media Storage]
subgraph N_Apps [App Stack]
class N_Apps stack
N_Hass[Home Assistant]
N_LLM[LLMCord AI]
end
subgraph N_Games [Game Node 1]
class N_Games stack
N_Wing[Ptero Wing]
N_Ark[Ark / MC Test]
end
end
%% --- PIHOLE ---
subgraph PiHoleBox [Raspberry Pi]
direction TB
class PiHoleBox server
PI_SVC[DNS Sinkhole]
PI_VPN[PiVPN Ingress]
end
end
%% ==========================================
%% 5. TRAFFIC WIRING (TheColored Clean Part)Lines)
%% ==========================================
%% --- PUBLIC INTERNET TRAFFIC(Bright (Green) ---
Internet ==>|HTTPS| P_Traefik
Internet ==>|Ports| D_Games
Internet ==>|Ports| Unifi
linkStyle 0,1,2 stroke:#00e676,stroke-width:3px;
%% --- THE TUNNEL (Bright Orange) ---
P_Traefik --> P_WG
P_WG ==>|WireGuard Tunnel| F_WG
linkStyle 3,4 stroke:#ff9100,stroke-width:4px;
%% --- INTERNAL ROUTING (Blue) ---
F_WG --> F_Traefik
F_Traefik --> F_Infra & F_Media & F_Admin & F_GameStack
F_Traefik -.-> N_Apps & PI_SVC
linkStyle 5,6,7 stroke:#2979ff,stroke-width:2px;
%% --- SPLIT ROUTING (Special Case) ---
P_WG -.->|Direct Route| N_WG
N_WG -.-> N_Games
%% --- PORT FORWARDING (Green Dotted) ---
Unifi -.->|32400| F_Plex
Unifi -.->|Game Ports| F_GameStack
Unifi -.->|Game Ports| N_Games
Unifi -.->|51820| PI_VPN
linkStyle 10,11,12,13 stroke:#00e676,stroke-width:2px,stroke-dasharray: 5 5;
%% --- MANAGEMENT & STORAGE (Grey) ---
F_Portainer -.-> P_Agent & D_Agent
F_Down -.->|NFS| N_Store
F_Panel -.-> D_Wing & N_Wing & F_WingP_