# documentations

Хранилище документов. Namespace: `documentations`.

```mermaid
flowchart LR
    GW[Istio Gateway]:::infra
    PG[(PostgreSQL)]:::data
    S3[S3 Proxy]:::infra
    MinIO[(MinIO)]:::data
    KC[Keycloak]:::idp

    subgraph NS["ns: documentations"]
        Frontend[deployment: frontend]:::comp
        API[deployment: api]:::comp
        Filestream[deployment: filestream<br/>upload/download]:::comp
        PDM[deployment: pdm<br/>product data mgmt]:::comp
        Frontend --> API
        API --> Filestream
        API --> PDM
    end

    DocLink[document-link]:::peer
    CDE[cde]:::peer
    Transmittal[transmittal]:::peer

    GW -->|/docs| Frontend
    DocLink -->|REST| API
    CDE -->|REST| API
    Transmittal -->|REST| API
    API --> PG
    PDM --> PG
    Filestream -->|files| S3 --> MinIO
    API -. JWT .-> KC

    classDef comp fill:#ec4899,stroke:#9d174d,stroke-width:2px,color:#fff
    classDef peer fill:#fce7f3,stroke:#9d174d,color:#000
    classDef data fill:#10b981,stroke:#065f46,color:#fff
    classDef infra fill:#0ea5e9,stroke:#075985,color:#fff
    classDef idp fill:#f59e0b,stroke:#92400e,color:#fff
    style NS fill:#fdf2f8,stroke:#ec4899,stroke-width:2px
```
