-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.17 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
---
version: '3'
services:
postgres:
image: postgres:10.3
container_name: postgres
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
ports:
- 5432:5432
webserver:
build:
dockerfile: ./Dockerfile
context: ./
env_file:
- .env
restart: always
depends_on:
- postgres
ports:
- 8080:8080
entrypoint: /usr/local/airflow/run_webserver.sh
healthcheck:
test: [CMD-SHELL, '[ -f /usr/local/airflow/airflow-webserver.pid ]']
interval: 30s
timeout: 30s
retries: 3
scheduler:
build:
dockerfile: ./Dockerfile
context: ./
env_file:
- .env
restart: always
depends_on:
- webserver
entrypoint: /usr/local/airflow/run_scheduler.sh
# entrypoint: airflow scheduler
healthcheck:
test: [CMD-SHELL, '[ -f /usr/local/airflow/airflow-scheduler.pid ]']
interval: 30s
timeout: 30s
retries: 3