Document infrastructure and dependency inventory

This commit is contained in:
Ruslan Bakiev
2026-05-01 14:46:12 +07:00
parent 3a3bd09a8c
commit d514eac990
2 changed files with 198 additions and 0 deletions

View File

@@ -66,6 +66,57 @@ export const diagramSources: Record<string, string> = {
Resolvers --> Prisma
Prisma --> PrismaSchema
Prisma --> Db`,
'infrastructure-topology': `flowchart TB
subgraph Repo[Репозиторий fregat]
FrontendRepo[web-frontend]
BackendRepo[apollo-backend]
TgRepo[tg-bot]
MaxRepo[max-bot]
BonusRepo[bonus-bot]
WorkerRepo[hatchet-worker]
VaultRepo[vault]
end
subgraph Dokploy[Dokploy]
FrontendSvc[web-frontend service]
BackendSvc[apollo-backend service]
TgSvc[tg-bot service]
MaxSvc[max-bot service]
BonusSvc[bonus-bot service]
WorkerSvc[hatchet-worker service]
VaultSvc[vault service]
end
subgraph Infra[Инфраструктурный контур]
VaultData[Vault raft storage /vault/data]
BackendDb[(PostgreSQL for app)]
HatchetEngine[Hatchet engine]
HatchetPg[(PostgreSQL for Hatchet)]
OneC[1С]
Tailscale[Tailscale SSH / diagnostics]
end
FrontendRepo --> FrontendSvc
BackendRepo --> BackendSvc
TgRepo --> TgSvc
MaxRepo --> MaxSvc
BonusRepo --> BonusSvc
WorkerRepo --> WorkerSvc
VaultRepo --> VaultSvc
FrontendSvc --> BackendSvc
BackendSvc --> BackendDb
BackendSvc --> VaultSvc
TgSvc --> VaultSvc
MaxSvc --> VaultSvc
BonusSvc --> VaultSvc
WorkerSvc --> VaultSvc
VaultSvc --> VaultData
WorkerSvc --> HatchetEngine
HatchetEngine --> HatchetPg
BackendSvc -.exchange.-> OneC
FrontendSvc -.ops / debug.-> Tailscale
BackendSvc -.ops / debug.-> Tailscale`,
'database-model': `classDiagram
direction LR