C4 — Containers
Уровень 2. Контейнеры внутри TableTime.
flowchart TB
subgraph clients [Clients]
Web["web-app Next.js"]
Bot["telegram-bot aiogram"]
end
subgraph gateway [Edge]
Nginx["Nginx Traefik"]
WS["WebSocket"]
end
subgraph services [Services FastAPI]
AuthSvc[auth-service]
SessionSvc[session-service]
GameSvc[game-runtime-service]
MediaSvc[media-service]
NotifySvc[realtime-service]
end
subgraph data [Data]
PG[PostgreSQL]
Redis[Redis]
S3[MinIO S3]
NATS[NATS]
end
Web --> Nginx
Bot --> SessionSvc
Bot --> GameSvc
Nginx --> AuthSvc
Nginx --> SessionSvc
Nginx --> GameSvc
Nginx --> MediaSvc
Web --> WS
WS --> NotifySvc
AuthSvc --> PG
SessionSvc --> PG
SessionSvc --> Redis
GameSvc --> PG
GameSvc --> Redis
GameSvc --> NATS
MediaSvc --> S3
NotifySvc --> Redis
NotifySvc --> NATS
Bot --> NATS
Исходник: containers.mmd