Redis ArchitectureΒΆ

Compose 🐳¢

flowchart LR
    subgraph role [svc-db-redis]
        svc_redis["redis<br>redis:8.10.3-alpine<br>redis 6379"]
    end

Swarm 🐝¢

flowchart LR
    svc_redis["redis"]
    svc_redis --> rep_redis["replicas: from the host group"]
    svc_redis --> plc_redis["node.role == manager"]:::pinned
    classDef pinned fill:#fef7e0,stroke:#b06000,color:#3d2600;

VolumesΒΆ

flowchart LR
    vol_data["redis_data"]
    vol_data -->|"role is manager-pinned"| local_data["node-local on the manager"]:::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_net_tor["svc-net-tor 🐳🐝"]
        dep_web_app_docs["web-app-docs 🐳🐝"]
    end
    subgraph role [svc-db-redis 🐳🐝]
        svc_redis["redis"]
        svc_tor["tor"]
        svc_container_backup["container_backup"]
        svc_docs["docs"]
    end
    subgraph dependents [Dependents]
        dpt_web_app_akaunting["web-app-akaunting 🐳🐝"]
        dpt_web_app_baserow["web-app-baserow 🐳🐝"]
        dpt_web_app_bookwyrm["web-app-bookwyrm 🐳🐝"]
        dpt_web_app_decidim["web-app-decidim 🐳🐝"]
        dpt_web_app_discourse["web-app-discourse 🐳🐝"]
        dpt_web_app_erpnext["web-app-erpnext 🐳🐝"]
        dpt_web_app_fider["web-app-fider 🐳🐝"]
        dpt_web_app_flowise["web-app-flowise 🐳🐝"]
        dpt_web_app_funkwhale["web-app-funkwhale 🐳🐝"]
        dpt_web_app_gitea["web-app-gitea 🐳🐝"]
        dpt_web_app_gitlab["web-app-gitlab 🐳🐝"]
        dpt_web_app_lam["web-app-lam 🐳🐝"]
        dpt_web_app_magento["web-app-magento 🐳🐝"]
        dpt_web_app_mailu["web-app-mailu 🐳🐝"]
        dpt_web_app_mastodon["web-app-mastodon 🐳🐝"]
        dpt_web_app_matomo["web-app-matomo 🐳🐝"]
        dpt_web_app_mattermost["web-app-mattermost 🐳🐝"]
        dpt_web_app_meta["web-app-meta 🐳🐝"]
        dpt_web_app_mini_qr["web-app-mini-qr 🐳🐝"]
        dpt_web_app_nextcloud["web-app-nextcloud 🐳🐝"]
        dpt_web_app_odoo["web-app-odoo 🐳🐝"]
        dpt_web_app_opentalk["web-app-opentalk 🐳🐝"]
        dpt_web_app_peertube["web-app-peertube 🐳🐝"]
        dpt_web_app_penpot["web-app-penpot 🐳🐝"]
        dpt_web_app_phpmyadmin["web-app-phpmyadmin 🐳🐝"]
        dpt_web_app_pixelfed["web-app-pixelfed 🐳🐝"]
        dpt_web_app_pretix["web-app-pretix 🐳🐝"]
        dpt_web_app_shopware["web-app-shopware 🐳🐝"]
        dpt_web_app_snipe_it["web-app-snipe-it 🐳🐝"]
        dpt_web_app_suitecrm["web-app-suitecrm 🐳🐝"]
        dpt_web_app_weblate["web-app-weblate 🐳🐝"]
        dpt_web_app_xwiki["web-app-xwiki 🐳🐝"]
        dpt_web_app_zammad["web-app-zammad 🐳🐝"]
        dpt_web_svc_collabora["web-svc-collabora 🐳🐝"]
        dpt_web_svc_coturn["web-svc-coturn 🐳🐝"]
        dpt_web_svc_libretranslate["web-svc-libretranslate 🐳🐝"]
        dpt_web_svc_onlyoffice["web-svc-onlyoffice 🐳🐝"]
        dpt_web_svc_simpleicons["web-svc-simpleicons 🐳🐝"]
    end
    dep_svc_bkp_volume_2_local -- "1:1" --> svc_container_backup
    dep_svc_net_tor -. "0..1" .-> svc_tor
    dep_web_app_docs -. "0..1" .-> svc_docs
    svc_redis -. "0..1" .-> dpt_web_app_akaunting
    svc_redis -. "0..1" .-> dpt_web_app_baserow
    svc_redis -. "0..1" .-> dpt_web_app_bookwyrm
    svc_redis -. "0..1" .-> dpt_web_app_decidim
    svc_redis -. "0..1" .-> dpt_web_app_discourse
    svc_redis -. "0..1" .-> dpt_web_app_erpnext
    svc_redis -. "0..1" .-> dpt_web_app_fider
    svc_redis -. "0..1" .-> dpt_web_app_flowise
    svc_redis -. "0..1" .-> dpt_web_app_funkwhale
    svc_redis -. "0..1" .-> dpt_web_app_gitea
    svc_redis -. "0..1" .-> dpt_web_app_gitlab
    svc_redis -. "0..1" .-> dpt_web_app_lam
    svc_redis -. "0..1" .-> dpt_web_app_magento
    svc_redis -. "0..1" .-> dpt_web_app_mailu
    svc_redis -. "0..1" .-> dpt_web_app_mastodon
    svc_redis -. "0..1" .-> dpt_web_app_matomo
    svc_redis -. "0..1" .-> dpt_web_app_mattermost
    svc_redis -. "0..1" .-> dpt_web_app_meta
    svc_redis -. "0..1" .-> dpt_web_app_mini_qr
    svc_redis -. "0..1" .-> dpt_web_app_nextcloud
    svc_redis -. "0..1" .-> dpt_web_app_odoo
    svc_redis -. "0..1" .-> dpt_web_app_opentalk
    svc_redis -. "0..1" .-> dpt_web_app_peertube
    svc_redis -. "0..1" .-> dpt_web_app_penpot
    svc_redis -. "0..1" .-> dpt_web_app_phpmyadmin
    svc_redis -. "0..1" .-> dpt_web_app_pixelfed
    svc_redis -. "0..1" .-> dpt_web_app_pretix
    svc_redis -. "0..1" .-> dpt_web_app_shopware
    svc_redis -. "0..1" .-> dpt_web_app_snipe_it
    svc_redis -. "0..1" .-> dpt_web_app_suitecrm
    svc_redis -. "0..1" .-> dpt_web_app_weblate
    svc_redis -. "0..1" .-> dpt_web_app_xwiki
    svc_redis -. "0..1" .-> dpt_web_app_zammad
    svc_redis -. "0..1" .-> dpt_web_svc_collabora
    svc_redis -. "0..1" .-> dpt_web_svc_coturn
    svc_redis -. "0..1" .-> dpt_web_svc_libretranslate
    svc_redis -. "0..1" .-> dpt_web_svc_onlyoffice
    svc_redis -. "0..1" .-> dpt_web_svc_simpleicons

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.