Giter Site home page Giter Site logo

forkfox / airflow-postgres-superset-on-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from finloop/airflow-postgres-superset-on-docker

0.0 0.0 0.0 84.79 MB

End to end data pipeline with Apache Airflow, Postgres and Apache Superset

Shell 4.87% Python 13.24% Jupyter Notebook 81.89%

airflow-postgres-superset-on-docker's Introduction

Airflow + Postgres + Superset

Architektura

Uruchamianie

git clone [email protected]:finloop/airflow-postgres-superset-on-docker.git
cd airflow-postgres-superset-on-docker

Do uruchomienia serwisów potrzebne będzie id aktualnego użytkownika, które należy umieścić w pliku .env i przypisać do zmiennej AIRFLOW_UID. W systemie linux id aktualnego użytkownika można pobrać poleceniem:

id -u

Przykładowy plik .env wygląda następująco:

AIRFLOW_UID=1000

I ostatecznie uruchamiamy wszystkie serwisy:

docker-compose up

Po ich uruchomieniu należy umieścić przykładowe dane w bazie. Robimy to:

python init-postgres.py

Serwisy WWWW

Pozostałe serwisy dostępne dla hosta

  • client-postgres: localhost:5051
  • warehouse-postgres: localhost:5052

Mapy w Apache Superset

Aby mapyw Apache Superset działały potrzebny będzie klucz do API. Moża go pozyskać za darmo tutaj: Mapbox. Należy go umieścić w pliku superset/docker/.env-non-dev jako MAPBOX_API_KEY. W następujący sposób:

MAPBOX_API_KEY='YOUR_API_KEY_FROM_MAPBOX1234567890'

Baza klienta

Aby korzystać z bazy klienta (nie włączająć pozostałych serwisów) należy użyć polecenia:

docker-compose up client-postgres pgadmin

Adres bazy (dla pgAdmina): client-postgres:5432

Konfiguracja bazy i pgAdmin:

POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.