Configuration¶
.env file (Docker / runtime)¶
| Variable | Purpose |
|---|---|
AIRFLOW_UID |
File ownership inside containers |
AIRFLOW_ENV |
development or production — selects Mongo/Neo4j connections |
_AIRFLOW_WWW_USER_* |
Airflow UI login |
MONGODB_URI |
Production Mongo URI (Cosmos) |
NEO4J_URI* / NEO4J_USER* / NEO4J_PASSWORD* |
Dev vs prod Neo4j |
OPENAI_* / AZURE_OPENAI_* |
Analysis and embedding DAGs |
Never commit .env. Copy .env.example.
YouTube and TikTok keys belong in Admin → Variables, not in .env.
Volumes (docker-compose.yaml)¶
| Host path | Container path | Purpose |
|---|---|---|
./dags |
/opt/airflow/dags |
DAG code (live reload) |
./helpers |
(on PYTHONPATH) |
Shared ETL, not parsed as DAGs |
./logs |
/opt/airflow/logs |
Task logs |
./config |
/opt/airflow/config |
Airflow config |
./data |
/opt/airflow/data |
CSV inputs, OpenAI batch temp files |
Project layout¶
.
├── dags/ # Airflow DAG definitions only
│ ├── youtube_pipeline_dag.py
│ ├── tiktok_pipeline_dag.py
│ └── ...
├── helpers/ # Shared ETL, callbacks, embeddings
├── data/input/ # Influencer CSV inputs
├── docs/ # Source of Airflow pages on the shared docs site
├── scripts/
│ ├── deploy.sh
│ └── validate.sh
├── docker-compose.yaml
├── Dockerfile
├── .env.example
└── .gitlab-ci.yml