-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
50
51
services:
webserver:
build:
context: .
dockerfile: Dockerfile
image: apache/airflow:2.9.0-python3.9
entrypoint: ['/opt/airflow/scripts/entrypoint.sh']
depends_on:
- postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- "8080:8080"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:8080/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3
start_period: 2m
networks:
- real-estate-network
scheduler:
image: apache/airflow:2.9.0-python3.9
depends_on:
webserver:
condition: service_healthy
command: >
bash -c "pip install -r requirements.txt &&
airflow db upgrade &&
airflow scheduler"
networks:
- real-estate-network
postgres:
image: postgres:14.0
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
logging:
options:
max-size: 10m
max-file: "3"
networks:
- real-estate-network
networks:
real-estate-network: