You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
!includeurl https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/master/C4_Container.puml
|
|
' uncomment the following line and comment the first to use locally
|
|
' !include C4_Container.puml
|
|
|
|
' Scope: A single container.
|
|
' Primary elements: Components within the container in scope.
|
|
' Supporting elements: Containers (within the software system in scope) plus people and software systems directly connected to the components.
|
|
' Intended audience: Software architects and developers.
|
|
|
|
' Colors
|
|
' ##################################
|
|
|
|
!ifndef COMPONENT_FONT_COLOR
|
|
!define COMPONENT_FONT_COLOR ELEMENT_FONT_COLOR
|
|
!endif
|
|
!ifndef COMPONENT_BG_COLOR
|
|
!define COMPONENT_BG_COLOR #85BBF0
|
|
!endif
|
|
!ifndef COMPONENT_BORDER_COLOR
|
|
!define COMPONENT_BORDER_COLOR #78A8D8
|
|
!endif
|
|
|
|
' Styling
|
|
' ##################################
|
|
|
|
skinparam rectangle<<component>> {
|
|
StereotypeFontColor COMPONENT_FONT_COLOR
|
|
FontColor COMPONENT_FONT_COLOR
|
|
BackgroundColor COMPONENT_BG_COLOR
|
|
BorderColor COMPONENT_BORDER_COLOR
|
|
}
|
|
|
|
skinparam database<<component>> {
|
|
StereotypeFontColor COMPONENT_FONT_COLOR
|
|
FontColor COMPONENT_FONT_COLOR
|
|
BackgroundColor COMPONENT_BG_COLOR
|
|
BorderColor COMPONENT_BORDER_COLOR
|
|
}
|
|
|
|
' Layout
|
|
' ##################################
|
|
|
|
!definelong LAYOUT_WITH_LEGEND
|
|
hide stereotype
|
|
legend right
|
|
|= |= Type |
|
|
|<PERSON_BG_COLOR> | person |
|
|
|<EXTERNAL_PERSON_BG_COLOR> | external person |
|
|
|<SYSTEM_BG_COLOR> | system |
|
|
|<EXTERNAL_SYSTEM_BG_COLOR> | external system |
|
|
|<CONTAINER_BG_COLOR> | container |
|
|
|<COMPONENT_BG_COLOR> | component |
|
|
endlegend
|
|
!enddefinelong
|
|
|
|
' Elements
|
|
' ##################################
|
|
|
|
!define Component(e_alias, e_label, e_techn) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//" <<component>> as e_alias
|
|
!define Component(e_alias, e_label, e_techn, e_descr) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//\n\n e_descr" <<component>> as e_alias
|
|
|
|
!define ComponentDb(e_alias, e_label, e_techn) database "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//" <<component>> as e_alias
|
|
!define ComponentDb(e_alias, e_label, e_techn, e_descr) database "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//\n\n e_descr" <<component>> as e_alias
|