# alepes-8/home_lab architecture

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

- Interactive diagram: https://gitdiagram.com/alepes-8/home_lab
- Repository: https://github.com/alepes-8/home_lab

## Overview

Home_Lab is a home-server setup intended to host production and staging environments. The tree also identifies deployment automation, network access, and monitoring components. No source excerpts or detailed README relationships were provided, so the graph shows these product components without asserting how they call or configure one another.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_prod["Production stack"]
  node_staging["Staging stack"]
  node_jenkins["Jenkins stack"]
end

subgraph group_automation["Automation"]
  node_bootstrap["Server bootstrap<br/>[bootstrap.sh]"]
  node_pi_bootstrap["Pi bootstrap<br/>[bootstrap-pi.sh]"]
  node_env_setup["Environment setup"]
  node_rollback["Rollback<br/>[rollback.sh]"]
end

subgraph group_network["Network access"]
  node_nginx["Nginx proxy<br/>[nginx.conf]"]
  node_wireguard["WireGuard clients"]
end

subgraph group_monitoring["Monitoring"]
  node_prometheus["Prometheus<br/>[prometheus.yml]"]
  node_grafana["Grafana dashboards<br/>[dashboard.yml]"]
  node_alertmanager["Alertmanager<br/>[config.yml]"]
end

click node_prod "https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.prod.yml"
click node_staging "https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.staging.yml"
click node_jenkins "https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.jenkins.yml"
click node_bootstrap "https://github.com/alepes-8/home_lab/blob/dev/scripts/bootstrap.sh"
click node_pi_bootstrap "https://github.com/alepes-8/home_lab/blob/dev/scripts/bootstrap-pi.sh"
click node_env_setup "https://github.com/alepes-8/home_lab/blob/dev/scripts/setup-env-server.sh"
click node_rollback "https://github.com/alepes-8/home_lab/blob/dev/scripts/rollback.sh"
click node_nginx "https://github.com/alepes-8/home_lab/blob/dev/nginx/nginx.conf"
click node_wireguard "https://github.com/alepes-8/home_lab/blob/dev/wireguard/genenarate-client.sh"
click node_prometheus "https://github.com/alepes-8/home_lab/blob/dev/prometheus/prometheus.yml"
click node_grafana "https://github.com/alepes-8/home_lab/blob/dev/grafana/provisioning/dashboards/dashboard.yml"
click node_alertmanager "https://github.com/alepes-8/home_lab/blob/dev/alertmanager/config.yml"

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_prod,node_staging,node_jenkins toneBlue
class node_bootstrap,node_pi_bootstrap,node_env_setup,node_rollback toneAmber
class node_nginx,node_wireguard toneMint
class node_prometheus,node_grafana,node_alertmanager toneRose
```

## Components

### Deployment

- [Production stack](https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.prod.yml): `docker-compose/docker-compose.prod.yml`
- [Staging stack](https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.staging.yml): `docker-compose/docker-compose.staging.yml`
- [Jenkins stack](https://github.com/alepes-8/home_lab/blob/dev/docker-compose/docker-compose.jenkins.yml): `docker-compose/docker-compose.jenkins.yml`

### Automation

- [Server bootstrap](https://github.com/alepes-8/home_lab/blob/dev/scripts/bootstrap.sh): `scripts/bootstrap.sh`
- [Pi bootstrap](https://github.com/alepes-8/home_lab/blob/dev/scripts/bootstrap-pi.sh): `scripts/bootstrap-pi.sh`
- [Environment setup](https://github.com/alepes-8/home_lab/blob/dev/scripts/setup-env-server.sh): `scripts/setup-env-server.sh`
- [Rollback](https://github.com/alepes-8/home_lab/blob/dev/scripts/rollback.sh): `scripts/rollback.sh`

### Network access

- [Nginx proxy](https://github.com/alepes-8/home_lab/blob/dev/nginx/nginx.conf): `nginx/nginx.conf`
- [WireGuard clients](https://github.com/alepes-8/home_lab/blob/dev/wireguard/genenarate-client.sh): `wireguard/genenarate-client.sh`

### Monitoring

- [Prometheus](https://github.com/alepes-8/home_lab/blob/dev/prometheus/prometheus.yml): `prometheus/prometheus.yml`
- [Grafana dashboards](https://github.com/alepes-8/home_lab/blob/dev/grafana/provisioning/dashboards/dashboard.yml): `grafana/provisioning/dashboards/dashboard.yml`
- [Alertmanager](https://github.com/alepes-8/home_lab/blob/dev/alertmanager/config.yml): `alertmanager/config.yml`
