Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.3 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.3 KB

Container view

A container view allows you to zoom-in to the software system shown on a system context view, to see the applications and data stores (what the C4 model refers to as "containers") that reside inside it.

workspace {

    model {
        u = person "User"
        s = softwareSystem "Software System" {
            webapp = container "Web Application"
            database = container "Database"
        }

        u -> webapp "Uses"
        webapp -> database "Reads from and writes to"
    }

    views {
        container s {
            include *
            autoLayout lr
        }
    }
    
}

This DSL defines a container view for the software system s, and include * includes the default set of model elements for the view.

Container views can be rendered using the Structurizr cloud service/on-premises installation or exported to a number of other formats via the Structurizr CLI export command.

Links