From 34288dcbbed4398455dfd4d5622027b6eb5e7b29 Mon Sep 17 00:00:00 2001 From: Cameron Seamons Date: Wed, 10 Dec 2025 20:09:44 -0700 Subject: [PATCH] updated gitignore --- .gitignore | 9 ++++++++- airflow/docker-compose.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 airflow/docker-compose.yaml diff --git a/.gitignore b/.gitignore index a09eb2a..099d2fd 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,11 @@ __pycache__/ .vscode/ #Environment files -.env \ No newline at end of file +.env + +#Airflow files +airflow/logs/ +airflow/__pycache__/ +airflow/airflow.db +airflow/plugins/__pycache__/ +postgres/data/ diff --git a/airflow/docker-compose.yaml b/airflow/docker-compose.yaml new file mode 100644 index 0000000..134cc1b --- /dev/null +++ b/airflow/docker-compose.yaml @@ -0,0 +1,29 @@ +services: + db: + container_name: postgres_container + image: postgres:15.15 + ports: + - 5000:5432 + environment: + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + volumes: + - postgres_data:/var/lib/postgresql/data + + af: + container_name: airflow_container + image: apache/airflow:3.1.3 + ports: + - ${AIRFLOW_PORT}:8080 + environment: + AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@db:5432/airflow + depends_on: + - db + volumes: + - ./airflow/dags:/opt/airflow/dags + command: > + bash -c "airflow db migrate && airflow standalone" + +volumes: + postgres_data: