# priyanka240492/airflow-learning architecture

> Architecture diagram of the GitHub repository priyanka240492/airflow-learning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/priyanka240492/airflow-learning
- Repository: https://github.com/priyanka240492/airflow-learning

## Overview

##### Project type and purpose
- This is an infrastructure‐as‐code project that deploys a distributed workflow orchestration system (Apache Airflow) using Docker Compose. Its goal is to stand up Airflow’s components—web server, scheduler, executors/workers—plus required backing services (database, message broker) in containers on a single host.

##### File structure
- Top-level files:
- .env – environment variables for Airflow services
- docker-compose.yaml – orchestrates multiple Docker services
- config/airflow.cfg – Airflow configuration file mounted into containers
- logs/… – host directory where containerized Airflow writes its task logs
- The presence of a single compose file and config directory indicates a “microservices in containers” architectural pattern (each Airflow component is its own service).

##### README for additional insights
- It explains how to fetch the official Docker Compose file for Airflow and how to troubleshoot curl/PowerShell quirks.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% External Actor
    User["User / Operator"]:::actor

    %% Docker Host and Services
    subgraph "Docker Host"
        direction TB
        Webserver["Airflow Webserver"]:::airflow
        Scheduler["Airflow Scheduler"]:::airflow
        Triggerer["Airflow Triggerer"]:::airflow
        Worker["Airflow Worker(s)"]:::airflow
        Broker["Message Broker (Redis/RabbitMQ)"]:::infra
        Database["Metadata DB (Postgres/MySQL)"]:::infra
    end

    %% Config and Compose Files
    subgraph "Configuration Files"
        direction TB
        EnvFile[".env"]:::volume
        ComposeFile["docker-compose.yaml"]:::volume
        CFGFile["config/airflow.cfg"]:::volume
    end

    %% Logs Volume
    LogsVolume["./logs (Task Logs)"]:::volume

    %% Relationships
    User -->|HTTP/HTTPS| Webserver
    Webserver -->|SQL| Database
    Scheduler -->|SQL| Database
    Scheduler -->|AMQP/Redis| Broker
    Broker -->|AMQP/Redis| Worker
    Worker -->|SQL| Database

    %% Shared Volumes mounts
    EnvFile --> Webserver
    EnvFile --> Scheduler
    EnvFile --> Triggerer
    EnvFile --> Worker
    ComposeFile --> Webserver
    ComposeFile --> Scheduler
    ComposeFile --> Triggerer
    ComposeFile --> Worker
    CFGFile --> Webserver
    CFGFile --> Scheduler
    CFGFile --> Triggerer
    CFGFile --> Worker
    LogsVolume --> Webserver
    LogsVolume --> Scheduler
    LogsVolume --> Triggerer
    LogsVolume --> Worker

    %% Click Events
    click EnvFile "https://github.com/priyanka240492/airflow-learning/blob/main/.env"
    click ComposeFile "https://github.com/priyanka240492/airflow-learning/blob/main/docker-compose.yaml"
    click CFGFile "https://github.com/priyanka240492/airflow-learning/blob/main/config/airflow.cfg"
    click LogsVolume "https://github.com/priyanka240492/airflow-learning/tree/main/logs/"

    %% Styles
    classDef actor fill:#a8dadc,stroke:#457b9d,color:#1d3557;
    classDef airflow fill:#ffe066,stroke:#f4a261,color:#000;
    classDef infra fill:#81b29a,stroke:#2a9d8f,color:#000;
    classDef volume fill:#c9ada7,stroke:#6d6875,color:#000;
```
