# sturay/docker-superset architecture

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

- Interactive diagram: https://gitdiagram.com/sturay/docker-superset
- Repository: https://github.com/sturay/docker-superset

## Overview

This repository packages Apache Superset as a Docker image and supports both Compose-based and distributed `docker run` deployments. The principal workflow is to start a configured container stack, which provides the Superset web application and asynchronous query workers backed by metadata storage and Redis. The graph also captures configurable runtime modes and Flower monitoring. Runtime source was sampled only for `superset_config.py`; other relationships shown here are documented in the README, so implementation details beyond that remain unverified.

Main entry points: [`script/docker-entrypoint.sh`](https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh) (Container entrypoint), [`docker-files/docker-compose.yml`](https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml) (Compose stack), [`config/superset_config.py`](https://github.com/sturay/docker-superset/blob/master/config/superset_config.py) (Superset settings), [`docker-files/Dockerfile`](https://github.com/sturay/docker-superset/blob/master/docker-files/Dockerfile) (Superset image)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_compose["Compose stack<br/>[docker-compose.yml]"]
  node_image["Superset image"]
  node_entrypoint["Container entrypoint"]
  node_dependencies["Database plugins"]
end

subgraph group_runtime["Superset runtime"]
  node_settings["Superset settings<br/>[superset_config.py]"]
  node_web["Superset web app"]
  node_async["Async SQL queries"]
  node_worker["Celery workers"]
  node_flower["Flower UI"]
end

subgraph group_services["Backing services"]
  node_metadata[("Metadata database")]
  node_redis["Redis cache and broker"]
  node_mysql[("MySQL<br/>[docker-compose.yml]")]
  node_rediscontainer["Redis service<br/>[docker-compose.yml]"]
end

node_operator(("Operator"))

node_operator -->|"starts stack"| node_compose
node_operator -->|"runs image"| node_image
node_compose -->|"starts container"| node_image
node_image -.->|"runs"| node_entrypoint
node_image -->|"includes"| node_dependencies
node_entrypoint -.->|"loads config"| node_settings
node_entrypoint -->|"starts"| node_web
node_entrypoint -->|"starts"| node_worker
node_entrypoint -->|"starts"| node_flower
node_settings -->|"configures URI"| node_metadata
node_settings -->|"configures cache"| node_redis
node_settings -->|"configures broker"| node_redis
node_web -->|"submits queries"| node_async
node_async -->|"queues tasks"| node_worker
node_worker -->|"uses broker"| node_redis
node_compose -->|"starts service"| node_mysql
node_compose -->|"starts service"| node_rediscontainer
node_mysql -->|"provides storage"| node_metadata
node_rediscontainer -->|"provides cache and broker"| node_redis

click node_compose "https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml"
click node_image "https://github.com/sturay/docker-superset/blob/master/docker-files/Dockerfile"
click node_entrypoint "https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh"
click node_settings "https://github.com/sturay/docker-superset/blob/master/config/superset_config.py"
click node_web "https://github.com/sturay/docker-superset/blob/master/docker-files/Dockerfile"
click node_worker "https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh"
click node_flower "https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh"
click node_dependencies "https://github.com/sturay/docker-superset/blob/master/docker-files/database-dependencies.txt"
click node_mysql "https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml"
click node_rediscontainer "https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml"

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_compose,node_image,node_entrypoint,node_dependencies toneBlue
class node_settings,node_web,node_async,node_worker,node_flower toneAmber
class node_metadata,node_redis,node_mysql,node_rediscontainer toneMint
class node_operator toneIndigo
```

## Components

### Deployment

- [Compose stack](https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml): `docker-files/docker-compose.yml`
- [Superset image](https://github.com/sturay/docker-superset/blob/master/docker-files/Dockerfile): `docker-files/Dockerfile`
- [Container entrypoint](https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh): `script/docker-entrypoint.sh`
- [Database plugins](https://github.com/sturay/docker-superset/blob/master/docker-files/database-dependencies.txt): `docker-files/database-dependencies.txt`

### Superset runtime

- [Superset settings](https://github.com/sturay/docker-superset/blob/master/config/superset_config.py): `config/superset_config.py`
- [Superset web app](https://github.com/sturay/docker-superset/blob/master/docker-files/Dockerfile): `docker-files/Dockerfile`
- **Async SQL queries**
- [Celery workers](https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh): `script/docker-entrypoint.sh`
- [Flower UI](https://github.com/sturay/docker-superset/blob/master/script/docker-entrypoint.sh): `script/docker-entrypoint.sh`

### Backing services

- **Metadata database**
- **Redis cache and broker**
- [MySQL](https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml): `docker-files/docker-compose.yml`
- [Redis service](https://github.com/sturay/docker-superset/blob/master/docker-files/docker-compose.yml): `docker-files/docker-compose.yml`

### Other components

- **Operator**

## Connections

- Operator → Compose stack: starts stack (evidence: `README.md`)
- Operator → Superset image: runs image (evidence: `README.md`)
- Compose stack → Superset image: starts container (evidence: `README.md`)
- Superset image → Container entrypoint: runs
- Superset image → Database plugins: includes (evidence: `README.md`)
- Container entrypoint → Superset settings: loads config
- Container entrypoint → Superset web app: starts (evidence: `README.md`)
- Container entrypoint → Celery workers: starts (evidence: `README.md`)
- Container entrypoint → Flower UI: starts (evidence: `README.md`)
- Superset settings → Metadata database: configures URI (evidence: `config/superset_config.py`)
- Superset settings → Redis cache and broker: configures cache (evidence: `config/superset_config.py`)
- Superset settings → Redis cache and broker: configures broker (evidence: `config/superset_config.py`)
- Superset web app → Async SQL queries: submits queries (evidence: `README.md`)
- Async SQL queries → Celery workers: queues tasks (evidence: `README.md`)
- Celery workers → Redis cache and broker: uses broker (evidence: `README.md`)
- Compose stack → MySQL: starts service (evidence: `README.md`)
- Compose stack → Redis service: starts service (evidence: `README.md`)
- MySQL → Metadata database: provides storage (evidence: `README.md`)
- Redis service → Redis cache and broker: provides cache and broker (evidence: `README.md`)
