Local setup of Postgres on Docker Compose
- Docker (started) and docker-compose (just install Docker for Desktop if you are on laptop)
- Clone repo
git clone https://github.com/datafuel/postgres_docker.git
- Run
cd postgres_docker
- Rename .env.example to .env and replace dummy values with yours
- Run
docker compose -f docker_build/docker-compose.yml
- Run
docker compose up
to run services - Run
docker exec -it dbt bash
to attach shell
- Give a Name to the Connection
- Go to the General Tab then :
- Host name /address : postgres_dwh
- Port : 5432
- Usernname : postgres
- Password : password4db The credentials may vary. They are defined in the .env file