This repository contains the configuration for setting up a Meltano project with PostgreSQL using Docker Compose. Additionally, it provides a web-based UI for PostgreSQL management via pgAdmin.
Ensure you have the following installed on your machine:
-
Clone the Repository
git clone https://github.com/masfworld/training-meltano.git
-
Create Docker Containers
docker compose up -d
-
Log in meltano container
docker exec -it training-meltano-meltano-1 /bin/bash
-
Init Project
meltano init my_project export MELTANO_PROJECT_ROOT=/project/my_project
-
Adding extractor
meltano add extractor tap-google-sheets meltano config tap-google-sheets set --interactive
You need to configure
Client ID
Client Secret
Refresh Token
Sheet id
-
Adding Loader
meltano add loader target-postgres meltano config target-postgres set --interactive
You need to configure
host = postgres
database = meltano_loader
username = myuser
password = mypassword
port = 5432
-
Execute pipeline
meltano elt tap-google-sheets target-postgres