# Service Dependency Diagram

The diagram below shows the high‑level dependencies between our core services.  It is updated automatically via the `dependency-graph.py` script in the CI pipeline.

```mermaid
%%{init: {'theme': 'forest'}}%%
graph LR
    MGMT["Portainer EE"] -->|Deploys| STACKS["Stacks"]
    STACKS -->|REST API| APP["REST Services"]
    APP -->|Auth| AUTH["Authentik"]
    AUTH -->|SSO| TRAFFIC["Ingress"]
    TRAFFIC -->|Encrypt| TLS["TLS / Let's Encrypt"]
    STACKS -->|Logs| LOGS["Grafana
    .
    Alerts"]
```   

> **Note**: The image below is an SVG rendered from the Mermaid diagram.  It is stored in the docs directory so you can view it offline.

![Service Dependencies](../../docs/images/service-dependencies.svg)
