# accelplatform/docker-stacks-cluster architecture

> Architecture diagram of the GitHub repository accelplatform/docker-stacks-cluster, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/accelplatform/docker-stacks-cluster
- Repository: https://github.com/accelplatform/docker-stacks-cluster

## Overview

This repository provides a Dockerized intra-mart Accel Platform cluster and a Juggling-based WAR/static-asset build workflow. Users configure a project and optional modules, build artifacts, then run the application through Apache HTTPd and Resin with supporting data, search, mail, and testing services. Runtime links follow the README’s topology and artifact descriptions; implementation details for Compose services are not sampled, so those edges cite the README.

Main entry points: [`juggling-build-war/build.mjs`](https://github.com/accelplatform/docker-stacks-cluster/blob/main/juggling-build-war/build.mjs) (Juggling build), [`resin`](https://github.com/accelplatform/docker-stacks-cluster/tree/main/resin) (Resin instance 1), [`httpd`](https://github.com/accelplatform/docker-stacks-cluster/tree/main/httpd) (Apache HTTPd), [`compose.yaml`](https://github.com/accelplatform/docker-stacks-cluster/blob/main/compose.yaml) (PostgreSQL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_build["Artifact build"]
  node_builder["Juggling build<br/>[build.mjs]"]
  node_juggling["Juggling engine"]
  node_modules["Additional modules"]
  node_war["WAR artifacts"]
  node_static["Static artifacts"]
end

subgraph group_application["Application runtime"]
  node_httpd["Apache HTTPd"]
  node_resin1["Resin instance 1"]
  node_resin2["Resin instance 2"]
end

subgraph group_services["Supporting services"]
  node_postgres[("PostgreSQL<br/>[compose.yaml]")]
  node_cassandra[("Cassandra")]
  node_solr["Solr"]
  node_mailpit["Mailpit SMTP<br/>[compose.yaml]"]
  node_test_agent["Studio test agent"]
end

subgraph group_configuration["Project configuration"]
  node_project["Juggling project"]
  node_project_config["Platform configuration"]
end

node_user(("Platform user"))

node_user -->|"runs build"| node_builder
node_builder -->|"opens project"| node_project
node_builder -->|"loads modules"| node_modules
node_builder -->|"creates engine"| node_juggling
node_builder -->|"applies modules"| node_project
node_builder -->|"writes WAR"| node_war
node_builder -->|"writes static files"| node_static
node_builder -->|"overlays configuration"| node_project_config
node_user -->|"requests application"| node_httpd
node_httpd -->|"routes requests"| node_resin1
node_httpd -->|"routes requests"| node_resin2
node_httpd -->|"serves files"| node_static
node_resin1 -->|"loads WAR files"| node_war
node_resin2 -->|"loads WAR files"| node_war
node_resin1 -->|"uses database"| node_postgres
node_resin2 -->|"uses database"| node_postgres
node_resin1 -->|"uses NoSQL store"| node_cassandra
node_resin2 -->|"uses NoSQL store"| node_cassandra
node_resin1 -->|"uses search"| node_solr
node_resin2 -->|"uses search"| node_solr
node_resin1 -->|"sends test mail"| node_mailpit
node_resin2 -->|"sends test mail"| node_mailpit
node_resin1 -->|"supports testing"| node_test_agent
node_resin2 -->|"supports testing"| node_test_agent

click node_builder "https://github.com/accelplatform/docker-stacks-cluster/blob/main/juggling-build-war/build.mjs"
click node_modules "https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/additional-modules"
click node_project "https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/project"
click node_project_config "https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/project/conf"
click node_httpd "https://github.com/accelplatform/docker-stacks-cluster/tree/main/httpd"
click node_resin1 "https://github.com/accelplatform/docker-stacks-cluster/tree/main/resin"
click node_resin2 "https://github.com/accelplatform/docker-stacks-cluster/tree/main/resin"
click node_postgres "https://github.com/accelplatform/docker-stacks-cluster/blob/main/compose.yaml"
click node_cassandra "https://github.com/accelplatform/docker-stacks-cluster/tree/main/cassandra"
click node_solr "https://github.com/accelplatform/docker-stacks-cluster/tree/main/solr"
click node_mailpit "https://github.com/accelplatform/docker-stacks-cluster/blob/main/compose.yaml"
click node_test_agent "https://github.com/accelplatform/docker-stacks-cluster/tree/main/accelstudio-testing-agent"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_builder,node_juggling,node_modules,node_war,node_static,node_user toneBlue
class node_httpd,node_resin1,node_resin2 toneAmber
class node_postgres,node_cassandra,node_solr,node_mailpit,node_test_agent toneMint
class node_project,node_project_config toneRose
```

## Components

### Artifact build

- [Juggling build](https://github.com/accelplatform/docker-stacks-cluster/blob/main/juggling-build-war/build.mjs): `juggling-build-war/build.mjs`
- **Juggling engine**
- [Additional modules](https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/additional-modules): `data/juggling/additional-modules`
- **WAR artifacts**
- **Static artifacts**

### Application runtime

- [Apache HTTPd](https://github.com/accelplatform/docker-stacks-cluster/tree/main/httpd): `httpd`
- [Resin instance 1](https://github.com/accelplatform/docker-stacks-cluster/tree/main/resin): `resin`
- [Resin instance 2](https://github.com/accelplatform/docker-stacks-cluster/tree/main/resin): `resin`

### Supporting services

- [PostgreSQL](https://github.com/accelplatform/docker-stacks-cluster/blob/main/compose.yaml): `compose.yaml`
- [Cassandra](https://github.com/accelplatform/docker-stacks-cluster/tree/main/cassandra): `cassandra`
- [Solr](https://github.com/accelplatform/docker-stacks-cluster/tree/main/solr): `solr`
- [Mailpit SMTP](https://github.com/accelplatform/docker-stacks-cluster/blob/main/compose.yaml): `compose.yaml`
- [Studio test agent](https://github.com/accelplatform/docker-stacks-cluster/tree/main/accelstudio-testing-agent): `accelstudio-testing-agent`

### Project configuration

- [Juggling project](https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/project): `data/juggling/project`
- [Platform configuration](https://github.com/accelplatform/docker-stacks-cluster/tree/main/data/juggling/project/conf): `data/juggling/project/conf`

### Other components

- **Platform user**

## Connections

- Platform user → Juggling build: runs build (evidence: `README.md`)
- Juggling build → Juggling project: opens project (evidence: `juggling-build-war/build.mjs`)
- Juggling build → Additional modules: loads modules (evidence: `juggling-build-war/build.mjs`)
- Juggling build → Juggling engine: creates engine (evidence: `juggling-build-war/build.mjs`)
- Juggling build → Juggling project: applies modules (evidence: `juggling-build-war/build.mjs`)
- Juggling build → WAR artifacts: writes WAR (evidence: `README.md`)
- Juggling build → Static artifacts: writes static files (evidence: `README.md`)
- Juggling build → Platform configuration: overlays configuration (evidence: `juggling-build-war/build.mjs`)
- Platform user → Apache HTTPd: requests application (evidence: `README.md`)
- Apache HTTPd → Resin instance 1: routes requests (evidence: `README.md`)
- Apache HTTPd → Resin instance 2: routes requests (evidence: `README.md`)
- Apache HTTPd → Static artifacts: serves files (evidence: `README.md`)
- Resin instance 1 → WAR artifacts: loads WAR files (evidence: `README.md`)
- Resin instance 2 → WAR artifacts: loads WAR files (evidence: `README.md`)
- Resin instance 1 → PostgreSQL: uses database (evidence: `README.md`)
- Resin instance 2 → PostgreSQL: uses database (evidence: `README.md`)
- Resin instance 1 → Cassandra: uses NoSQL store (evidence: `README.md`)
- Resin instance 2 → Cassandra: uses NoSQL store (evidence: `README.md`)
- Resin instance 1 → Solr: uses search (evidence: `README.md`)
- Resin instance 2 → Solr: uses search (evidence: `README.md`)
- Resin instance 1 → Mailpit SMTP: sends test mail (evidence: `README.md`)
- Resin instance 2 → Mailpit SMTP: sends test mail (evidence: `README.md`)
- Resin instance 1 → Studio test agent: supports testing (evidence: `README.md`)
- Resin instance 2 → Studio test agent: supports testing (evidence: `README.md`)
