-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (33 loc) · 949 Bytes
/
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
version: '3'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:6
airflow:
build: .
container_name: airflow_container
depends_on:
- postgres
- redis
ports:
- "8080:8080"
volumes:
- ./dags:/usr/local/airflow/dags # Adicionando o mapeamento correto para a pasta dags
- .:/app
environment:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres/airflow
AIRFLOW__CELERY__BROKER_URL: redis://redis:6379/0
AIRFLOW__CELERY__RESULT_BACKEND: db+postgresql://airflow:airflow@postgres/airflow
command: >
bash -c "pipenv run airflow db init &&
pipenv run airflow scheduler &
pipenv run airflow webserver"
volumes:
postgres_data: