@startuml
title PoC - Architecture KPLAN (mononœud)

cloud "Internet" {
  actor Utilisateur as U
  component "DNS kplan.example.com" as DNS
}

node "VM Linux (Docker Compose)" as VM {
  [Traefik\n(Reverse Proxy + Let's Encrypt)] as T
  [App KPLAN\n(PHP/Apache + Front)] as A
  [Worker\n(Supervisord: cron + messenger:consume)] as W
  [RabbitMQ 3.13] as MQ
}

database "MySQL 8\n(Managed ou VM dédiée)" as DB

U --> DNS
DNS --> T : HTTPS 443
T --> A : HTTP (interne)
A --> MQ : AMQP
W --> MQ : AMQP
A --> DB : MySQL
W --> DB : MySQL

@enduml

