cnstlungu/portable-data-stack-mage
cnstlungu/portable-data-stack-mage has 55 GitHub stars and 11 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-14 03:35 UTC. Last push 2026-10-26.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A portable Datamart and Business Intelligence suite built with Docker, Mage, dbt, DuckDB and Superset
DataREADME.md
OriginalPortable Data Stack with Mage
This application is a containerized Analytics suite for an imaginary company selling postcards. The company sells both directly but also through resellers in the majority of European countries.
Stack
- Mage
- Docker (docker compose)
- DuckDB
- dbt core
- Superset
Interested in the data model?
Generation of example data and the underlying dbt-core model is available in the postcard-company-datamart project
For other orchestration options using the same dbt-core model check the below:
Implementations with different tools, not using the dbt-core model:
System requirements
Setup
Rename
.env.examplefile to.envand set your desired Superset password. Remember to never commit files containing passwords or any other sensitive information.The
SUPERSET_SECRET_KEYin.env.exampleis a placeholder that every fork of this repository shares, and Superset signs session cookies with it. Generate your own before the stack is reachable by anyone but you:openssl rand -base64 42Rename
shared/db/datamart.duckdb.exampletoshared/db/datamart.duckdbor init an empty database file there with that name.With Docker engine installed, change directory to the root folder of the project (also the one that contains docker-compose.yml) and run
docker compose up --buildOnce the Docker suite has finished loading, open up Mage , click on the pipeline
grateful flowerand create aRun@oncetrigger.
Default credentials for mage: Email [email protected] Password admin.



- When the actions have completed, you can open the Superset interface
Demo Credentials
Demo credentials are set in the .env file mentioned above.
Ports exposed locally
- Mage: 6789
- Superset: 8088
Generated Parquet are saved in the shared/parquet folder.
The data is fictional and automatically generated. Any similarities with existing persons, entities, products or businesses are purely coincidental.
General flow
- Generate test data - Parquet files - using Python (generator)
- Import data from parquet files to staging area in the Data Warehouse (DuckDB), orchestrated by Mage
- Model data, build fact and dimension tables, load the Data Warehouse using dbt
- installs dbt dependencies
- seeds the database with static data (e.g. geography)
- runs the model
- tests the model
- Analyze and visually explore the data using Superset or directly query the Data Warehouse database instance
For superset, the default credentials are set in the .env file: user = admin, password = admin
Overview of architecture
The docker process will begin building the application suite. The suite is made up of the following components, each within its own docker container:
- generator: a Python script, from the postcard-company-datamart project, that generates the example data and exports it to parquet files
- dbt: copies the data model from the postcard-company-datamart project into
dbt/postcard_company, where Mage runs it. Edits you make there survive restarts; they are replaced only whenDATAMART_REFmoves to a different version of the model. - mage: this is the orchestrator tool that will trigger the ETL tasks; its GUI is locally available on port 6789;
- superset: this contains the web-based Business Intelligence application we will use to explore the data; exposed on port 8088; built from the postcard-company-datamart project, dashboard included.
The generator, the dbt project and Superset with its dashboard are not kept in this
repository. Docker builds them straight from postcard-company-datamart, by git URL, at the tag
set by DATAMART_REF in docker-compose.yml, so every portable data stack
runs the same model and the same dashboard. To build from a newer tag or a
branch instead:
DATAMART_REF=main docker compose build
Once the docker building process has completed, we may open the Mage GUI (locally: localhost:6789) to view the orchestration of our tasks.
After the DAGs have completed you can either analyze the data using the querying and visualization tools provided by Superset (available locally on port 8088), or query the Data Warehouse (available as a DuckDB Database)

Credits
Inspired by:
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,711 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,894 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,490 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,522 stars