block diagrams with Mermaid - MarekBykowski/readme GitHub Wiki

Mermaid

graph TD;
    A[web-app-1]-->B[web-network];
    C[db-app-1]-->B;
    D[docker-host]-->B;
    E[web-app-2]-->B;
    F[docker-image]-->A;

In this example:
A and C are containers (web-app-1 and db-app-1).
B is a network (web-network).
D is the Docker host.
E is another container (web-app-2).
F is a Docker image.
The arrows represent the relationships between the containers, network, and Docker host.

graph TD;
    A-->B;
    A<-->|hello|C[Got hello from A];
    B-->D{I haven't got hello A};
    C-->D;