-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (38 loc) · 1002 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (38 loc) · 1002 Bytes
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
41
42
43
version: "3.8"
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- postgres-db-volume:/var/lib/postgresql/data
airflow-webserver:
image: apache/airflow:2.8.4
env_file:
- .env
environment:
_PIP_ADDITIONAL_REQUIREMENTS: -r /requirements.txt
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/logs:/opt/airflow/logs
- .:/opt/airflow/nba_project
- ./requirements.txt:/requirements.txt
ports:
- "8080:8080"
command: webserver
airflow-scheduler:
image: apache/airflow:2.8.4
env_file:
- .env
environment:
_PIP_ADDITIONAL_REQUIREMENTS: -r /requirements.txt
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/logs:/opt/airflow/logs
- .:/opt/airflow/nba_project
- ./requirements.txt:/requirements.txt
command: scheduler
volumes:
postgres-db-volume: