-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (37 loc) · 1.5 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
services:
airflow:
build:
context: .
dockerfile: Dockerfile.airflow
ports:
- "8080:8080" # Airflow web UI
volumes:
- "./dags:/opt/airflow/dags" # Mounting local project directory to share DAGs with Airflow
- "./plugins:/opt/airflow/plugins" # Mounting local plugins directory to extend Airflow functionality
- "./logs:/opt/airflow/logs" # Mounting local logs directory to store Airflow task logs
- "./data:/data" # Mounting local 'data' directory to store downloaded and output files
environment:
- AIRFLOW__WEBSERVER__RBAC=true
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres/airflow
#- AIRFLOW__CORE__FERNET_KEY=myFernetKey # Replace with your own key
- AIRFLOW_ADMIN_USERNAME=admin # Set your desired admin username
- AIRFLOW_ADMIN_PASSWORD=admin # Set your desired admin password
- AIRFLOW_ADMIN_EMAIL=admin@example.com # Set your desired admin email
- AIRFLOW_ADMIN_FIRSTNAME=AdminFirst # Set the first name of the admin
- AIRFLOW_ADMIN_LASTNAME=AdminLast # Set the last name of the admin
depends_on:
- postgres
- postgres_tutorial
postgres:
image: postgres:13
environment:
POSTGRES_DB: airflow
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
postgres_tutorial:
image: postgres:13
environment:
POSTGRES_DB: tutorial
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres