Skip to content

Документация: нарисовать стартовую схему целевой архитектуры #11

@mesilov

Description

@mesilov

Description

C4Context
title Container diagram for Web Application (Single Server)

System_Boundary(server, "Single Server") {
    Container(nginx, "Nginx Container", "Web Server", "Handles incoming HTTP requests and serves static content")
    Container(phpfpm, "PHP-FPM Container", "Application Server", "Processes PHP scripts for dynamic content")
    Container(phpcli, "PHP-CLI Container", "Command Line Interface", "Executes PHP scripts from the command line")
    Container(phpcron, "PHP-Cron Container", "Scheduler", "Runs scheduled PHP tasks")
    Container(postgres, "PostgreSQL Container", "Database", "Stores application data")
    Container(pgbackup, "PG Backup Container", "Backup Service", "Performs regular backups of the PostgreSQL database")
}

Rel(nginx, phpfpm, "Forwards requests", "FastCGI")
Rel(phpfpm, postgres, "Reads/Writes data", "SQL/TCP")
Rel(phpcli, postgres, "Reads/Writes data", "SQL/TCP")
Rel(phpcron, postgres, "Reads/Writes data", "SQL/TCP")
Rel(pgbackup, postgres, "Backs up", "SQL/TCP")
Loading

Нотация — https://c4model.com/#ContainerDiagram

Example

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions