Skip to content

Commit b74c399

Browse files
committed
Add Metabase integration for data visualization and update documentation
1 parent 432d6c4 commit b74c399

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This project implements a medallion architecture for data lakes, which organizes
1717
- **Orchestration**: Prefect
1818
- **Transformation**: dbt
1919
- **Data Quality**: Great Expectations
20+
- **Reporting & Visualization**: Metabase
2021
- **Local Development**: Docker, Poetry
2122
- **External APIs**: NewsAPI
2223

@@ -92,6 +93,7 @@ docker-compose up -d
9293

9394
This will start:
9495
- Local PostgreSQL database
96+
- Metabase (data visualization and reporting tool) accessible at http://localhost:3000
9597

9698
### Running Tests
9799

docker/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,27 @@ services:
1818
timeout: 5s
1919
retries: 5
2020

21+
metabase:
22+
image: metabase/metabase:latest
23+
container_name: medallion-metabase
24+
depends_on:
25+
postgres:
26+
condition: service_healthy
27+
environment:
28+
MB_DB_TYPE: postgres
29+
MB_DB_DBNAME: medallion
30+
MB_DB_PORT: 5432
31+
MB_DB_USER: postgres
32+
MB_DB_PASS: postgres
33+
MB_DB_HOST: postgres
34+
ports:
35+
- "3000:3000"
36+
healthcheck:
37+
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
38+
interval: 30s
39+
timeout: 10s
40+
retries: 3
41+
start_period: 60s
42+
2143
volumes:
2244
postgres-data:

docs/development.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Before you begin, ensure you have the following installed:
3434
The project includes a Docker Compose configuration that sets up a local development environment with:
3535

3636
- PostgreSQL database
37+
- Metabase (data visualization and reporting tool)
38+
39+
Metabase provides a user-friendly interface for creating reports and dashboards based on the data in the PostgreSQL database. It can be accessed at http://localhost:3000 after starting the Docker environment.
3740

3841
To start the local environment:
3942

0 commit comments

Comments
 (0)