forked from dsaidgovsg/airflow-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.celeryexecutor.yml
65 lines (61 loc) · 1.7 KB
/
docker-compose.celeryexecutor.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '2.3'
services:
redis:
hostname: redis
image: redis:3.2
restart: always
command: redis-server --appendonly yes
volumes:
- redis:/data
scheduler:
environment:
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
AIRFLOW__CELERY__BROKER_URL: redis://fixme@redis:6379/1
volumes:
- ./dags:/airflow/dags
webserver:
environment:
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
volumes:
- ./dags:/airflow/dags
flwr:
build:
context: .
target: with-spark-optional-dag
dockerfile: Dockerfile
command: afp-flower
depends_on:
- redis
environment:
AIRFLOW__CORE__FERNET_KEY: 8NE6O6RcTJpxcCkuKxOHOExzIJkXkeJKbRie03a69dI=
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://fixme:fixme@postgres:5432/airflow
AIRFLOW__CELERY__BROKER_URL: redis://fixme@redis:6379/1
FLOWER_PERSISTENT: "true"
FLOWER_DB: /airflow/flower/flower.db
ports:
- 127.0.0.1:5555:5555
restart: always
volumes:
- airflow_flower_db:/airflow/flower
worker:
build:
context: .
target: with-spark-optional-dag
dockerfile: Dockerfile
command: afp-worker
depends_on:
- scheduler
environment:
AIRFLOW__CORE__FERNET_KEY: 8NE6O6RcTJpxcCkuKxOHOExzIJkXkeJKbRie03a69dI=
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://fixme:fixme@postgres:5432/airflow
AIRFLOW__CELERY__BROKER_URL: redis://fixme@redis:6379/1
restart: always
volumes:
- ./dags:/airflow/dags
- airflow_worker_logs:/airflow/logs:rw
volumes:
redis: {}
airflow_flower_db: {}
airflow_worker_logs: {}