# osza99/devsecops-pipeline-spring-docker architecture

> Architecture diagram of the GitHub repository osza99/devsecops-pipeline-spring-docker, 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/osza99/devsecops-pipeline-spring-docker
- Repository: https://github.com/osza99/devsecops-pipeline-spring-docker

## Overview

Ce dépôt orchestre deux versions d’une API Spring Boot de gestion des personnes autour d’une base MySQL, derrière un proxy Nginx. Le parcours principal va du client vers le routage par version, puis vers l’API et les données partagées. Le README décrit aussi PHPMyAdmin, les sauvegardes et SonarQube. Aucun extrait de source n’étant fourni, les relations ci-dessous s’appuient sur la documentation; les liens internes non explicitement documentés sont omis.

Main entry points: [`docker-compose.yaml`](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml) (Base MySQL), [`src/main/java/com/example/devops`](https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/src/main/java/com/example/devops) (Application v1), [`nginx.conf`](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/nginx.conf) (Proxy Nginx), [`src/main/java/com/example/devops/web/PersonController.java`](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/web/PersonController.java) (API personnes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Accès et routage"]
  node_nginx["Proxy Nginx<br/>[nginx.conf]"]
end

subgraph group_api["API Spring"]
  node_appv1["Application v1"]
  node_appv2["Application v2"]
  node_persons["API personnes"]
  node_version["API version"]
  node_person["Modèle personne<br/>[Person.java]"]
  node_repository["Dépôt personnes"]
end

subgraph group_data["Données"]
  node_mysql[("Base MySQL")]
  node_schema["Schéma initial"]
  node_dumps["Dumps SQL"]
end

subgraph group_ops["Services annexes"]
  node_phpmyadmin["PHPMyAdmin"]
  node_backup["Service sauvegarde"]
  node_sonarqube["SonarQube"]
end

node_client(("Client API"))

node_client -->|"envoie requêtes"| node_nginx
node_nginx -->|"route /v1"| node_appv1
node_nginx -->|"route /v2"| node_appv2
node_appv1 -->|"accède aux données"| node_mysql
node_appv2 -->|"accède aux données"| node_mysql
node_appv1 -->|"expose API"| node_persons
node_appv2 -->|"expose API"| node_persons
node_appv1 -->|"expose API"| node_version
node_appv2 -->|"expose API"| node_version
node_schema -->|"initialise"| node_mysql
node_phpmyadmin -->|"administre"| node_mysql
node_backup -->|"sauvegarde"| node_mysql
node_backup -->|"écrit dumps"| node_dumps

click node_nginx "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/nginx.conf"
click node_appv1 "https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/src/main/java/com/example/devops"
click node_appv2 "https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/src/main/java/com/example/devops"
click node_persons "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/web/PersonController.java"
click node_version "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/web/VersionController.java"
click node_person "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/domain/Person.java"
click node_repository "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/domain/PersonRepository.java"
click node_mysql "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml"
click node_schema "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/database/monannuaire_mysql.sql"
click node_phpmyadmin "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml"
click node_backup "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml"
click node_dumps "https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/backups"
click node_sonarqube "https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml"

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_nginx,node_client toneBlue
class node_appv1,node_appv2,node_persons,node_version,node_person,node_repository toneAmber
class node_mysql,node_schema,node_dumps toneMint
class node_phpmyadmin,node_backup,node_sonarqube toneRose
```

## Components

### Accès et routage

- [Proxy Nginx](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/nginx.conf): `nginx.conf`

### API Spring

- [Application v1](https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/src/main/java/com/example/devops): `src/main/java/com/example/devops`
- [Application v2](https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/src/main/java/com/example/devops): `src/main/java/com/example/devops`
- [API personnes](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/web/PersonController.java): `src/main/java/com/example/devops/web/PersonController.java`
- [API version](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/web/VersionController.java): `src/main/java/com/example/devops/web/VersionController.java`
- [Modèle personne](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/domain/Person.java): `src/main/java/com/example/devops/domain/Person.java`
- [Dépôt personnes](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/src/main/java/com/example/devops/domain/PersonRepository.java): `src/main/java/com/example/devops/domain/PersonRepository.java`

### Données

- [Base MySQL](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml): `docker-compose.yaml`
- [Schéma initial](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/database/monannuaire_mysql.sql): `database/monannuaire_mysql.sql`
- [Dumps SQL](https://github.com/osza99/devsecops-pipeline-spring-docker/tree/main/backups): `backups`

### Services annexes

- [PHPMyAdmin](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml): `docker-compose.yaml`
- [Service sauvegarde](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml): `docker-compose.yaml`
- [SonarQube](https://github.com/osza99/devsecops-pipeline-spring-docker/blob/main/docker-compose.yaml): `docker-compose.yaml`

### Other components

- **Client API**

## Connections

- Client API → Proxy Nginx: envoie requêtes (evidence: `README.md`)
- Proxy Nginx → Application v1: route /v1 (evidence: `README.md`)
- Proxy Nginx → Application v2: route /v2 (evidence: `README.md`)
- Application v1 → Base MySQL: accède aux données (evidence: `README.md`)
- Application v2 → Base MySQL: accède aux données (evidence: `README.md`)
- Application v1 → API personnes: expose API (evidence: `README.md`)
- Application v2 → API personnes: expose API (evidence: `README.md`)
- Application v1 → API version: expose API (evidence: `README.md`)
- Application v2 → API version: expose API (evidence: `README.md`)
- Schéma initial → Base MySQL: initialise (evidence: `README.md`)
- PHPMyAdmin → Base MySQL: administre (evidence: `README.md`)
- Service sauvegarde → Base MySQL: sauvegarde (evidence: `README.md`)
- Service sauvegarde → Dumps SQL: écrit dumps (evidence: `README.md`)
