Hello E.,
You can use `left to right direction`, as:
1st proposal:
@startuml
left to right direction
skinparam linetype ortho
rectangle "<size:50>App" as App
rectangle "<size:50>Nginx" as Nginx
collections Tomcat_1[
== <size:30>Tomcat
{{
rectangle WAR {
component UI
}
}}
]
collections Tomcat_2[
== <size:30>Tomcat
{{
rectangle WAR {
component UI
}
}}
]
database "<size:50>MySQL" as MySQL
App <--> Nginx
Nginx <-r-> Tomcat_1
Nginx <-l-> Tomcat_2
Tomcat_1 <--> MySQL
Tomcat_2 <--> MySQL
@enduml
2nd proposal:
@startuml
left to right direction
skinparam linetype ortho
rectangle "<size:50>App" as App
rectangle "<size:50>Nginx" as Nginx
collections Tomcat_1[
== <size:30>Tomcat
{{
rectangle WAR {
component UI
}
}}
]
collections Tomcat_2[
== <size:30>Tomcat
{{
rectangle WAR {
component UI
}
}}
]
database "<size:50>MySQL" as MySQL
App <--> Nginx
Nginx <--> Tomcat_1
Nginx <--> Tomcat_2
Tomcat_1 <--> MySQL
Tomcat_2 <--> MySQL
@enduml
If that can help,
Regards.