forked from dsaidgovsg/airflow-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.74 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
52
53
version: '2.3'
services:
postgres:
image: postgres:9.6
restart: always
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: fixme
POSTGRES_PASSWORD: fixme
POSTGRES_DB: airflow
scheduler:
build:
context: .
target: with-spark-optional-dag
dockerfile: Dockerfile
restart: always
depends_on:
- postgres
environment:
AIRFLOW__CORE__FERNET_KEY: 8NE6O6RcTJpxcCkuKxOHOExzIJkXkeJKbRie03a69dI=
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://fixme:fixme@postgres:5432/airflow
PYSPARK_SUBMIT_ARGS: --driver-memory 16g --packages com.databricks:spark-csv_2.10:1.5.0,com.databricks:spark-avro_2.10:2.0.1,graphframes:graphframes:0.1.0-spark1.6 pyspark-shell
# PYSPARK_SUBMIT_ARGS: --driver-memory 16g --packages com.databricks:spark-csv_2.11:1.5.0,com.databricks:spark-avro_2.11:3.1.0,graphframes:graphframes:0.3.0-spark2.0-s_2.11 pyspark-shell
PYSPARK_PYTHON: /usr/local/bin/python2.7
PIPELINE_DATA_PATH: hdfs://dsg-cluster-gw01/datasets/finnet
PIPELINE_DATA_FORMAT: com.databricks.spark.avro
command: afp-scheduler
volumes:
- airflow_logs:/airflow/logs
webserver:
build:
context: .
target: with-spark-optional-dag
dockerfile: Dockerfile
restart: always
depends_on:
- scheduler
environment:
AIRFLOW__CORE__FERNET_KEY: 8NE6O6RcTJpxcCkuKxOHOExzIJkXkeJKbRie03a69dI=
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://fixme:fixme@postgres:5432/airflow
AIRFLOW_USER: fixme
AIRFLOW_EMAIL: [email protected]
AIRFLOW_PASSWORD: fixme
ports:
- 127.0.0.1:8080:8080
command: afp-webserver
volumes_from:
- scheduler
volumes:
postgres: {}
airflow_logs: {}