XMPP ArchitectureΒΆ

Compose 🐳¢

flowchart LR
    subgraph role [web-svc-xmpp]
        svc_ejabberd["ejabberd<br>built here"]
    end

Swarm 🐝¢

flowchart LR
    svc_ejabberd["ejabberd"]
    svc_ejabberd --> rep_ejabberd["replicas: from the host group"]
    classDef pinned fill:#fef7e0,stroke:#b06000,color:#3d2600;

VolumesΒΆ

flowchart LR
    vol_home["ejabberd_home"]
    vol_home -->|"nfs: false"| local_home["node-local on every node"]:::local
    vol_data["ejabberd_data"]
    vol_data -->|"swarm + storage.backend nfs"| nfs_data["shared over NFS"]:::shared
    vol_data -->|"compose, or backend local"| cl_data["node-local"]:::local
    vol_conf["ejabberd_conf"]
    vol_conf -->|"swarm + storage.backend nfs"| nfs_conf["shared over NFS"]:::shared
    vol_conf -->|"compose, or backend local"| cl_conf["node-local"]:::local
    vol_upload["ejabberd_upload"]
    vol_upload -->|"swarm + storage.backend nfs"| nfs_upload["shared over NFS"]:::shared
    vol_upload -->|"compose, or backend local"| cl_upload["node-local"]:::local
    vol_logs["ejabberd_logs"]
    vol_logs -->|"swarm + storage.backend nfs"| nfs_logs["shared over NFS"]:::shared
    vol_logs -->|"compose, or backend local"| cl_logs["node-local"]:::local
    classDef shared fill:#e6f4ea,stroke:#137333,color:#0b2e13;
    classDef local fill:#fef7e0,stroke:#b06000,color:#3d2600;

Condition

Effect

swarm, storage.backend: nfs, no nfs: false, role not pinned

shared over NFS

any one of those missing

node-local

All four conditions must hold, so pinning a role takes every one of its volumes node-local. Only the role’s primary entry counts as pinned here: a placement on any other service pins that service alone and leaves the backing of every volume unchanged. The chain is drawn rather than its result, because that coupling is what makes a placement change move data without saying so.

DependenciesΒΆ

flowchart LR
    subgraph deps [Dependencies]
        dep_svc_bkp_volume_2_local["svc-bkp-volume-2-local πŸ’»"]
        dep_svc_db_openldap["svc-db-openldap 🐳🐝"]
        dep_svc_net_tor["svc-net-tor 🐳🐝"]
        dep_web_app_docs["web-app-docs 🐳🐝"]
        dep_web_app_keycloak["web-app-keycloak 🐳🐝"]
        dep_web_app_prometheus["web-app-prometheus 🐳🐝"]
    end
    subgraph role [web-svc-xmpp 🐳🐝]
        svc_logout["logout ❌"]
        svc_prometheus["prometheus"]
        svc_sso["sso"]
        svc_ldap["ldap"]
        svc_design["design ❌"]
        svc_xmpp["xmpp"]
        svc_tor["tor"]
        svc_container_backup["container_backup"]
        svc_docs["docs"]
    end
    dep_svc_bkp_volume_2_local -. "0..1" .-> svc_container_backup
    dep_svc_db_openldap -. "0..1" .-> svc_ldap
    dep_svc_net_tor -. "0..1" .-> svc_tor
    dep_web_app_docs -. "0..1" .-> svc_docs
    dep_web_app_keycloak -. "0..1" .-> svc_sso
    dep_web_app_prometheus -. "0..1" .-> svc_prometheus

Symbol

Meaning

1:1 solid

fixed relationship

0..1 dashed

conditional, enabled only in matching deployments

0..0 red

declared but turned off in this role

πŸ’»

deploys to the host

🐳

deploys under compose

🐝

deploys under swarm

❌

service explicitly turned off

βš™οΈ

Ansible role dependency from meta/main.yml

Every dependency and dependent is listed; the graph is not truncated.