main
branch -- via docker-init.sh
sh docker-init.sh
For terminal logs see init.log
(+ cmd.log
in main
branch).
Gross Merchandise Value view created via gmv_stores.sql
Additional attributes added in createdb.sql
.
Additional postgresql service at localhost:5434
:
docker-compose up -d postgres_w_dv
Connect debezium to master:
(Example in debezium.sh
)
# docker-compose up -d postgres_master
# sleep 90
docker-compose up -d zookeeper
sleep 90
docker-compose up -d broker
sleep 90
docker-compose up -d debezium
sleep 60
docker-compose up -d debezium-ui
sleep 30
curl -X POST --location "http://localhost:8083/connectors" -H "Content-Type: application/json" -H "Accept: application/json" -d @debezium_connector.json
Check connection via localhost:8080
.
To run airflow:
cd airflow
docker-compose up -d
Check connection at localhost:8084
. Login and password: airflow
.
Add connection in UI (Admin -> Connections):
- Connection ID -
postgres_data_vault
- Connection type -
Postgres
- Host -
host.docker.internal
- Database -
stores
- Login, password -
postgres
- Port -
5434
Dags (only create presentation
schema and tables, dags are scheduled for daily update at 00:00):
quynhu_d_whale_dag
: get top customersquynhu_d_gmv_dag
: get GMV
Run Metabase:
docker-compose up -d postgres_w_dv
docker-compose up -d metabase
Access Metabase UI at localhost:3000
.
Add connection to DB in UI:
- Connection type -
Postgres
- Host -
host.docker.internal
- Database -
stores
- Login, password -
postgres
- Port -
5434
Dashboards:
Video: link.