- open application Docker ( as an administrator )
- open console as an administrator ----> navigate to the folder PROJETBI
- command: docker-compose up -d
- we have now 3 containers ( for PostgreSQL, port=5432 and Superset, port=8088 and web app PGADMIN for operating with DBs, port=5050 )
links and logins: - Superset : - http://localhost:8088/ - login: admin - pwd: admin
- PGadmin:
- http://localhost:5050/
- login: admin@admin.com
- pwd: admin
CREATING CONNECTION WITH DB:
- open PGadmin and login
- select "Add New Server" General: name: superset Connection: host name: postgres port: 5432 Maintenance db: superset username: superset pwd: superset
CONNECTION TO SUPERSET:
- open Superset : http://localhost:8088/
- login: admin, pwd: admin
- press '+ ' button on the top right --> Data --> Connect Database
- Select PosetgreSQL
- on the bottom select 'Connect this db with a SQLAlchemy'
- insert this link --> postgresql+psycopg2://superset:superset@postgres:5432/superset
- press connect
- then go to DATASETS
- press '+DATASET'
- Now u can select on the left: db: PostgreSQL schema: public table:
postgresql+psycopg2://superset:superset@postgres:5432/superset