This repository provides docker-compose
devcontainer environments tailored for the coding exercises in "Data Engineering with Python" by Paul Crickard.
- Streamlined Setup: Run
docker-compose up
to build & launch all the necessary containers and dependencies, eliminating the need for manual configuration. - Unified Environment: While each service runs in its separate container, they all operate within the same network, ensuring smooth interaction.
- Integrated with VSCode: With the "Attach to Running Container" feature in the VSCode remote desktop extensions, working within a container is straightforward.
- Direct Access: Directories like "airflow" are mounted to the main VSCode directory for ease of access to configurations and DAGs.
Ensure you have:
- VSCode with the dev containers extension.
- Docker, configured with WSL.
- Create a
.env
file in the/.devcontainer
directory with the following variables:AIRFLOW_PROJ_DIR PGADMIN_DEFAULT_EMAIL PGADMIN_DEFAULT_PASSWORD
- Open the repository in VSCode.
- In your terminal, navigate to
.devcontainer
. - Execute
docker-compose build
- Execute
docker-compose up
. - Open PgAdmin in a browser and register your postgres server
- name = airflow
- host name = postgres
- port = 5432
- username = airflow
- password = airflow
- Open Airflow Webserver in a broswer and login
- username = airflow
- password = airflow