-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose.yml
160 lines (149 loc) · 3.46 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: "3"
services:
docs:
container_name: docs
image: nginx
ports:
- "80:80"
volumes:
- "./nginx/html:/usr/share/nginx/html:ro"
master:
container_name: master
image: arjones/pyspark:2.4.5
restart: always
command: ["/opt/spark/sbin/start-master.sh"]
environment:
MASTER: spark://master:7077
SPARK_NO_DAEMONIZE: 1
ports:
- 4040:4040
- 6066:6066
- 7077:7077
- 8080:8080
volumes:
- ./code:/app
- ./dataset:/dataset
worker1:
container_name: worker1
image: arjones/pyspark:2.4.5
restart: always
command: ["/opt/spark/sbin/start-slave.sh", "spark://master:7077"]
environment:
MASTER: spark://master:7077
SPARK_NO_DAEMONIZE: 1
depends_on:
- master
ports:
- 4041:4040
- "6066"
- "7077"
- 8081:8080
volumes:
- ./code:/app
- ./dataset:/dataset
worker2:
container_name: worker2
image: arjones/pyspark:2.4.5
restart: always
command: ["/opt/spark/sbin/start-slave.sh", "spark://master:7077"]
environment:
MASTER: spark://master:7077
SPARK_NO_DAEMONIZE: 1
depends_on:
- master
ports:
- 4042:4040
- "6066"
- "7077"
- 8082:8080
volumes:
- ./code:/app
- ./dataset:/dataset
jupyter:
container_name: jupyter
image: arjones/pyspark:2.4.5
restart: always
environment:
MASTER: spark://master:7077
depends_on:
- master
ports:
- "8888:8888"
volumes:
- ./jupyter/notebook:/notebook
- ./dataset:/dataset
- ./code:/app
kafka:
container_name: kafka
image: spotify/kafka
restart: always
ports:
- "2181:2181"
- "9092:9092"
environment:
ADVERTISED_HOST: kafka
ADVERTISED_PORT: 9092
postgres:
container_name: postgres
image: postgres:11
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/scripts:/docker-entrypoint-initdb.d
environment:
POSTGRES_DB: workshop
POSTGRES_USER: workshop
POSTGRES_PASSWORD: w0rkzh0p
ports:
- "5432:5432"
redis:
container_name: redis
image: redis
restart: always
superset:
container_name: superset
image: amancevice/superset
restart: always
depends_on:
- redis
- postgres
environment:
MAPBOX_API_KEY: ${MAPBOX_API_KEY}
SUPERSET_HOME: /etc/superset
ports:
- "8088:8088"
volumes:
- ./superset/conf/superset_config.py:/etc/superset/superset_config.py
- superset:/var/lib/superset
postgres-airflow:
container_name: postgres-airflow
image: postgres:11
restart: always
volumes:
- postgres-airflow-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: airflow
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
ports:
- "5434:5432"
airflow:
container_name: airflow
image: puckel/docker-airflow
restart: always
depends_on:
- postgres-airflow
environment:
EXECUTOR: Local
LOAD_EX: n
AIRFLOW__WEBSERVER__WEB_SERVER_PORT: 9090
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres-airflow:5432/airflow
AIRFLOW__CORE__FERNET_KEY: "Eff80poJxv6LE4432pDC6OmD6N449KCSuhUAMLXiq4U="
ports:
- "9090:9090"
volumes:
- ./airflow/dags:/usr/local/airflow/dags
volumes:
postgres-data:
superset:
postgres-airflow-data: