# kkynet/gitops architecture

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

- Interactive diagram: https://gitdiagram.com/kkynet/gitops
- Repository: https://github.com/kkynet/gitops

## Overview

This repository is a Docker Compose infrastructure-as-code collection, with a documented focus on email hosting. The main setup workflow is to establish DNS with PowerDNS, then configure Traefik as the central reverse proxy and TLS provider; Traefik’s DNS challenge uses RFC2136, and its generated certificates can be exported for services such as mailserver. The remaining nodes represent documented service stacks, grouped by purpose. Source excerpts were unavailable, so internal stack relationships are shown only where the README explicitly documents them.

Main entry points: [`traefik`](https://github.com/kkynet/gitops/tree/main/traefik) (Traefik), [`powerdns`](https://github.com/kkynet/gitops/tree/main/powerdns) (PowerDNS), [`mailserver`](https://github.com/kkynet/gitops/tree/main/mailserver) (Mailserver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge_dns["DNS and Edge"]
  node_powerdns["PowerDNS"]
  node_traefik["Traefik"]
  node_cert_export["Certificate Export"]
end

subgraph group_mail["Email Hosting"]
  node_mailserver["Mailserver"]
  node_dovecot["Dovecot"]
  node_mailman["Mailman 3"]
  node_postfix["Postfix"]
  node_mail_redis["Redis"]
  node_roundcube["Roundcube"]
  node_rspamd["Rspamd"]
  node_unbound["Unbound"]
end

subgraph group_applications["Applications"]
  node_glpi["GLPI"]
  node_nextcloud["Nextcloud"]
  node_transmission["Transmission"]
  node_vikunja["Vikunja"]
end

subgraph group_operations["Operations"]
  node_crowdsec["CrowdSec"]
  node_grafana["Grafana"]
  node_prometheus["Prometheus"]
  node_smokeping["SmokePing"]
  node_zabbix["Zabbix"]
end

subgraph group_platform["Platform Services"]
  node_discourse["Discourse"]
  node_fossbilling["FOSSBilling"]
  node_galera[("MariaDB Galera")]
  node_rpz["RPZ DNS"]
  node_unifi["UniFi"]
  node_wireguard["WireGuard"]
  node_pterodactyl["Pterodactyl"]
  node_wings["Pterodactyl Wings"]
end

node_operator(("Operator"))

node_operator -->|"sets up first"| node_powerdns
node_operator -->|"sets up next"| node_traefik
node_traefik -->|"uses RFC2136"| node_powerdns
node_traefik -->|"exports certificates"| node_cert_export
node_cert_export -->|"provides certificates"| node_mailserver

click node_powerdns "https://github.com/kkynet/gitops/tree/main/powerdns"
click node_traefik "https://github.com/kkynet/gitops/tree/main/traefik"
click node_cert_export "https://github.com/kkynet/gitops/tree/main/traefik"
click node_mailserver "https://github.com/kkynet/gitops/tree/main/mailserver"
click node_dovecot "https://github.com/kkynet/gitops/tree/main/mailserver/dovecot"
click node_mailman "https://github.com/kkynet/gitops/tree/main/mailserver/mailman3"
click node_postfix "https://github.com/kkynet/gitops/tree/main/mailserver/postfix"
click node_mail_redis "https://github.com/kkynet/gitops/tree/main/mailserver/redis"
click node_roundcube "https://github.com/kkynet/gitops/tree/main/mailserver/roundcube"
click node_rspamd "https://github.com/kkynet/gitops/tree/main/mailserver/rspamd"
click node_unbound "https://github.com/kkynet/gitops/tree/main/mailserver/unbound"
click node_glpi "https://github.com/kkynet/gitops/tree/main/applications/glpi"
click node_nextcloud "https://github.com/kkynet/gitops/tree/main/applications/nextcloud"
click node_transmission "https://github.com/kkynet/gitops/tree/main/applications/transmission"
click node_vikunja "https://github.com/kkynet/gitops/tree/main/applications/vikunja"
click node_crowdsec "https://github.com/kkynet/gitops/tree/main/crowdsec"
click node_grafana "https://github.com/kkynet/gitops/tree/main/grafana"
click node_prometheus "https://github.com/kkynet/gitops/tree/main/monitoring/prometheus"
click node_smokeping "https://github.com/kkynet/gitops/tree/main/monitoring/smokeping"
click node_zabbix "https://github.com/kkynet/gitops/tree/main/monitoring/zabbix"
click node_discourse "https://github.com/kkynet/gitops/tree/main/discourse"
click node_fossbilling "https://github.com/kkynet/gitops/tree/main/fossbilling"
click node_galera "https://github.com/kkynet/gitops/tree/main/mariadb-galera"
click node_rpz "https://github.com/kkynet/gitops/tree/main/networking/rpz-kominfo-ubuntu"
click node_unifi "https://github.com/kkynet/gitops/tree/main/networking/unifi"
click node_wireguard "https://github.com/kkynet/gitops/tree/main/networking/wireguard"
click node_pterodactyl "https://github.com/kkynet/gitops/tree/main/pterodactyl"
click node_wings "https://github.com/kkynet/gitops/tree/main/pterodactyl-wings"

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_powerdns,node_traefik,node_cert_export toneBlue
class node_mailserver,node_dovecot,node_mailman,node_postfix,node_mail_redis,node_roundcube,node_rspamd,node_unbound toneAmber
class node_glpi,node_nextcloud,node_transmission,node_vikunja toneMint
class node_crowdsec,node_grafana,node_prometheus,node_smokeping,node_zabbix toneRose
class node_discourse,node_fossbilling,node_galera,node_rpz,node_unifi,node_wireguard,node_pterodactyl,node_wings,node_operator toneIndigo
```

## Components

### DNS and Edge

- [PowerDNS](https://github.com/kkynet/gitops/tree/main/powerdns): `powerdns`
- [Traefik](https://github.com/kkynet/gitops/tree/main/traefik): `traefik`
- [Certificate Export](https://github.com/kkynet/gitops/tree/main/traefik): `traefik`

### Email Hosting

- [Mailserver](https://github.com/kkynet/gitops/tree/main/mailserver): `mailserver`
- [Dovecot](https://github.com/kkynet/gitops/tree/main/mailserver/dovecot): `mailserver/dovecot`
- [Mailman 3](https://github.com/kkynet/gitops/tree/main/mailserver/mailman3): `mailserver/mailman3`
- [Postfix](https://github.com/kkynet/gitops/tree/main/mailserver/postfix): `mailserver/postfix`
- [Redis](https://github.com/kkynet/gitops/tree/main/mailserver/redis): `mailserver/redis`
- [Roundcube](https://github.com/kkynet/gitops/tree/main/mailserver/roundcube): `mailserver/roundcube`
- [Rspamd](https://github.com/kkynet/gitops/tree/main/mailserver/rspamd): `mailserver/rspamd`
- [Unbound](https://github.com/kkynet/gitops/tree/main/mailserver/unbound): `mailserver/unbound`

### Applications

- [GLPI](https://github.com/kkynet/gitops/tree/main/applications/glpi): `applications/glpi`
- [Nextcloud](https://github.com/kkynet/gitops/tree/main/applications/nextcloud): `applications/nextcloud`
- [Transmission](https://github.com/kkynet/gitops/tree/main/applications/transmission): `applications/transmission`
- [Vikunja](https://github.com/kkynet/gitops/tree/main/applications/vikunja): `applications/vikunja`

### Operations

- [CrowdSec](https://github.com/kkynet/gitops/tree/main/crowdsec): `crowdsec`
- [Grafana](https://github.com/kkynet/gitops/tree/main/grafana): `grafana`
- [Prometheus](https://github.com/kkynet/gitops/tree/main/monitoring/prometheus): `monitoring/prometheus`
- [SmokePing](https://github.com/kkynet/gitops/tree/main/monitoring/smokeping): `monitoring/smokeping`
- [Zabbix](https://github.com/kkynet/gitops/tree/main/monitoring/zabbix): `monitoring/zabbix`

### Platform Services

- [Discourse](https://github.com/kkynet/gitops/tree/main/discourse): `discourse`
- [FOSSBilling](https://github.com/kkynet/gitops/tree/main/fossbilling): `fossbilling`
- [MariaDB Galera](https://github.com/kkynet/gitops/tree/main/mariadb-galera): `mariadb-galera`
- [RPZ DNS](https://github.com/kkynet/gitops/tree/main/networking/rpz-kominfo-ubuntu): `networking/rpz-kominfo-ubuntu`
- [UniFi](https://github.com/kkynet/gitops/tree/main/networking/unifi): `networking/unifi`
- [WireGuard](https://github.com/kkynet/gitops/tree/main/networking/wireguard): `networking/wireguard`
- [Pterodactyl](https://github.com/kkynet/gitops/tree/main/pterodactyl): `pterodactyl`
- [Pterodactyl Wings](https://github.com/kkynet/gitops/tree/main/pterodactyl-wings): `pterodactyl-wings`

### Other components

- **Operator**

## Connections

- Operator → PowerDNS: sets up first (evidence: `README.md`)
- Operator → Traefik: sets up next (evidence: `README.md`)
- Traefik → PowerDNS: uses RFC2136 (evidence: `README.md`)
- Traefik → Certificate Export: exports certificates (evidence: `README.md`)
- Certificate Export → Mailserver: provides certificates (evidence: `README.md`)
