# doxah/homelab architecture

> Architecture diagram of the GitHub repository doxah/homelab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/doxah/homelab
- Repository: https://github.com/doxah/homelab

## Overview

This repository is a personal homelab’s documentation and infrastructure-configuration hub, intended to help rebuild the environment. Its documented workflow is to consult the environment and service documentation, then use utility scripts to launch Docker Compose stacks and the GLPI MCP server with encrypted secrets. The README also describes the physical and network environment and future Ansible, Terraform, and Kubernetes plans. The tree identifies individual stacks, but no source excerpts were provided, so their runtime relationships are not inferred.

Main entry points: [`docs`](https://github.com/doxah/homelab/tree/main/docs) (Environment docs), [`scripts`](https://github.com/doxah/homelab/tree/main/scripts) (Launch utilities), [`compose`](https://github.com/doxah/homelab/tree/main/compose) (Docker Compose stacks), [`mcp/glpi`](https://github.com/doxah/homelab/tree/main/mcp/glpi) (GLPI MCP server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_documentation["Documentation"]
  node_docs["Environment docs"]
end

subgraph group_runtime["Runtime configuration"]
  node_compose["Docker Compose stacks"]
  node_compose_secrets["Encrypted stack secrets"]
  node_mcp_glpi["GLPI MCP server"]
  node_mcp_secrets["MCP secrets"]
  node_ansible["Future Ansible config"]
  node_terraform["Future provisioning config"]
  node_k8s["Future K3s config"]
end

subgraph group_operations["Operations"]
  node_scripts["Launch utilities"]
end

node_engineer(("Homelab operator"))
node_hardware["Homelab hardware"]
node_network["Network environment"]

node_engineer -->|"consults"| node_docs
node_docs -->|"documents"| node_hardware
node_docs -->|"documents"| node_network
node_engineer -->|"runs"| node_scripts
node_scripts -->|"launches stacks"| node_compose
node_scripts -->|"launches server"| node_mcp_glpi
node_compose -->|"uses encrypted"| node_compose_secrets
node_mcp_glpi -->|"uses encrypted"| node_mcp_secrets

click node_docs "https://github.com/doxah/homelab/tree/main/docs"
click node_compose "https://github.com/doxah/homelab/tree/main/compose"
click node_compose_secrets "https://github.com/doxah/homelab/tree/main/compose"
click node_mcp_glpi "https://github.com/doxah/homelab/tree/main/mcp/glpi"
click node_mcp_secrets "https://github.com/doxah/homelab/tree/main/mcp/glpi"
click node_scripts "https://github.com/doxah/homelab/tree/main/scripts"
click node_ansible "https://github.com/doxah/homelab/tree/main/ansible"
click node_terraform "https://github.com/doxah/homelab/tree/main/terraform"
click node_k8s "https://github.com/doxah/homelab/tree/main/k8s"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_docs toneBlue
class node_compose,node_compose_secrets,node_mcp_glpi,node_mcp_secrets,node_ansible,node_terraform,node_k8s toneAmber
class node_scripts toneMint
class node_engineer,node_hardware,node_network toneIndigo
```

## Components

### Documentation

- [Environment docs](https://github.com/doxah/homelab/tree/main/docs): `docs`

### Runtime configuration

- [Docker Compose stacks](https://github.com/doxah/homelab/tree/main/compose): `compose`
- [Encrypted stack secrets](https://github.com/doxah/homelab/tree/main/compose): `compose`
- [GLPI MCP server](https://github.com/doxah/homelab/tree/main/mcp/glpi): `mcp/glpi`
- [MCP secrets](https://github.com/doxah/homelab/tree/main/mcp/glpi): `mcp/glpi`
- [Future Ansible config](https://github.com/doxah/homelab/tree/main/ansible): `ansible`
- [Future provisioning config](https://github.com/doxah/homelab/tree/main/terraform): `terraform`
- [Future K3s config](https://github.com/doxah/homelab/tree/main/k8s): `k8s`

### Operations

- [Launch utilities](https://github.com/doxah/homelab/tree/main/scripts): `scripts`

### Other components

- **Homelab operator**
- **Homelab hardware**
- **Network environment**

## Connections

- Homelab operator → Environment docs: consults (evidence: `README.md`)
- Environment docs → Homelab hardware: documents (evidence: `README.md`)
- Environment docs → Network environment: documents (evidence: `README.md`)
- Homelab operator → Launch utilities: runs (evidence: `README.md`)
- Launch utilities → Docker Compose stacks: launches stacks (evidence: `README.md`)
- Launch utilities → GLPI MCP server: launches server (evidence: `README.md`)
- Docker Compose stacks → Encrypted stack secrets: uses encrypted (evidence: `README.md`)
- GLPI MCP server → MCP secrets: uses encrypted (evidence: `README.md`)
