-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
186 lines (177 loc) · 4.44 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: "2"
services:
mongo:
image: mongo:4.4
command: --nojournal
networks:
- fiware
orion:
image: fiware/orion
container_name: orion
links:
- mongo
ports:
- "1026:1026"
command: -dbhost mongo
networks:
- fiware
python_amat:
image: python:3
container_name: data_amat
environment:
- FRECUENCY=3
- ORION_ENDPOINT=orion:1026
command: bash -c "pip install --no-cache-dir -r /scripts/requirements.txt && python /scripts/generate-data-amat.py"
volumes:
- ./data:/data
- ./scripts:/scripts
networks:
- fiware
python_parking:
image: python:3
container_name: data_parking
environment:
- FRECUENCY=3
- ORION_ENDPOINT=orion:1026
command: bash -c "pip install --no-cache-dir -r /scripts/requirements.txt && python /scripts/generate-data-parking.py"
volumes:
- ./data:/data
- ./scripts:/scripts
networks:
- fiware
# mongo:
# container_name: mongo
# image: mongo:3.6
# command: --nojournal
# networks:
# - fiware
# ports:
# - "27018:27017"
# environment:
# - MONGO_INITDB_ROOT_USERNAME=root
# - MONGO_INITDB_ROOT_PASSWORD=example
# orion:
# container_name: orion
# image: fiware/orion
# links:
# - mongo
# ports:
# - "1026:1026"
# command: -dbhost mongo -dbuser root -dbpwd example
# depends_on:
# - mongo
# networks:
# - fiware
spark-master:
image: bde2020/spark-master:2.4.4-hadoop2.7
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
- "9001:9001"
environment:
- INIT_DAEMON_STEP=setup_spark
- "constraint:node==spark-master"
- "ORION_HOST=http://orion:1026"
- "NOTIFICATION_HOST=http://spark-master"
networks:
- fiware
volumes:
- ./prediction-job:/prediction-job
- /spark
- ./data:/data
spark-worker-1:
image: bde2020/spark-worker:2.4.4-hadoop2.7
container_name: spark-worker-1
depends_on:
- spark-master
ports:
- "8081:8081"
- "9002:9001"
environment:
- "SPARK_MASTER=spark://spark-master:7077"
- "constraint:node==spark-master"
- "ORION_HOST=http://orion:1026"
- "NOTIFICATION_HOST=http://spark-worker-1"
volumes:
- ./prediction-job:/prediction-job
- ./data:/data
networks:
- fiware
zeppelin-spark:
image: ging/zeppelin
user: 'root'
container_name: zeppelin-spark
ports:
- "8079:8080"
- "9003:9001"
volumes:
- ./conf:/opt/zeppelin/conf
- ./dependencies:/zeppelin/external-jars
- ./prediction-job:/prediction-job
- ./notebook:/zeppelin/notebook/FIWARE
- ./data:/data
volumes_from:
- spark-master:ro
environment:
- "SPARK_MASTER=spark://spark-master:7077"
- "MASTER=spark://spark-master:7077"
- "SPARK_HOME=/spark"
- "SPARK_SUBMIT_OPTIONS= --packages org.mongodb.spark:mongo-spark-connector_2.11:2.4.2 --jars /zeppelin/external-jars/orion.spark.connector-1.3.0.jar,/zeppelin/external-jars/mongo-spark-connector_2.11-2.4.2.jar"
depends_on:
- spark-master
networks:
- fiware
# draco:
# image: ging/fiware-draco
# container_name: draco
# depends_on:
# - orion
# environment:
# - NIFI_WEB_HTTP_PORT=9090
# ports:
# - "9090:9090"
# - "5050:5050"
# networks:
# - fiware
# python:
# image: python:3
# container_name: python
# depends_on:
# - draco
# environment:
# - DRACO_ENDPOINT=draco:9090
# networks:
# - fiware
# command: bash -c "sleep 120 && pip install --no-cache-dir -r /entities/requirements.txt && sh /entities/createPredictionEntities.sh && sh /entities/create_entity.sh && sh /entities/subscribe.sh && python /entities/runDraco.py && sh /entities/subscribeRoomTicket.sh"
# volumes:
# - ./entities:/entities
# mongo-ds:
# image: ging/mongo-dataset
# restart: always
# ports:
# - 27017:27017
# volumes:
# - vol-mongo:/data
# networks:
# - fiware
# dataset:
# image: ging/dataset
# restart: always
# links:
# - mongo-ds
# environment:
# - ORION_ENDPOINT=orion:1026
# - MONGO_URI=mongodb://mongo-ds:27017/
# - START_DATE=2016-01-14
# - END_DATE=2016-01-15
# - FRECUENCY=5
# depends_on:
# - mongo-ds
# - orion
# networks:
# - fiware
networks:
fiware:
volumes:
vol-mongo: