dia_nc_simple.py 781 B

12345678910111213141516171819202122232425
  1. from diagrams import Cluster, Diagram
  2. from diagrams.onprem.database import Mysql
  3. from diagrams.onprem.network import Apache, Internet
  4. from diagrams.onprem.groupware import Nextcloud
  5. from diagrams.generic.os import LinuxGeneral
  6. from diagrams.programming.language import Php
  7. import diagrams.outscale.storage as storage_2
  8. with Diagram(filename="./assets/dia_nc_simple", show=False):
  9. out = Internet("Internet")
  10. with Cluster("LAMP"):
  11. with Cluster("Linux = L"):
  12. linux = LinuxGeneral()
  13. storage = storage_2.Storage()
  14. with Cluster("Nextcloud Web server = AMP"):
  15. Apache() - Mysql() - Php()
  16. nc = Nextcloud()
  17. linux >> out >> linux >> storage
  18. linux >> nc >> storage