!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Context.puml ' uncomment the following line and comment the first to use locally ' !include C4_Context.puml ' Scope: A single software system. ' Primary elements: Containers within the software system in scope. ' Supporting elements: People and software systems directly connected to the containers. ' Intended audience: Technical people inside and outside of the software development team; including software architects, developers and operations/support staff. ' Colors ' ################################## !global $CONTAINER_BG_COLOR = "#438DD5" ' Styling ' ################################## skinparam rectangle<> { StereotypeFontColor $ELEMENT_FONT_COLOR FontColor $ELEMENT_FONT_COLOR BackgroundColor $CONTAINER_BG_COLOR BorderColor #3C7FC0 } skinparam database<> { StereotypeFontColor $ELEMENT_FONT_COLOR FontColor $ELEMENT_FONT_COLOR BackgroundColor $CONTAINER_BG_COLOR BorderColor #3C7FC0 } ' Layout ' ################################## !procedure LAYOUT_WITH_LEGEND() hide stereotype legend right |**Legend** | |<$PERSON_BG_COLOR> person | |<$SYSTEM_BG_COLOR> system | |<$CONTAINER_BG_COLOR> container | |<$EXTERNAL_PERSON_BG_COLOR> external person | |<$EXTERNAL_SYSTEM_BG_COLOR> external system | endlegend !endprocedure ' Elements ' ################################## !function $getContainer($label, $techn, $descr, $sprite) !if ($descr == "") && ($sprite == "") !return '=='+$label+'\n//['+$techn+']//' !endif !if ($descr == "") && ($sprite != "") !return '<$'+$sprite+'>\n=='+$label+'\n//['+$techn+']//' !endif !if ($descr != "") && ($sprite == "") !return '=='+$label+'\n//['+$techn+']//\n\n '+$descr !endif !if ($descr != "") && ($sprite != "") !return '<$'+$sprite+'>\n=='+$label+'\n//['+$techn+']//\n\n '+$descr !endif !endfunction !unquoted procedure Container($alias, $label, $techn, $descr="", $sprite="") rectangle "$getContainer($label, $techn, $descr, $sprite)" <> as $alias !endprocedure !unquoted procedure ContainerDb($alias, $label, $techn, $descr="", $sprite="") database "$getContainer($label, $techn, $descr, $sprite)" <> as $alias !endprocedure ' Boundaries ' ################################## !unquoted function Container_Boundary($alias, $label) !return Boundary($alias, $label, "Container") !endfunction