-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prometheus.yml
210 lines (210 loc) · 5.24 KB
/
docker-compose-prometheus.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
version: '3'
services:
app-manager:
build:
context: .
dockerfile: ./docker/app-manager/Dockerfile
hostname: app-manager
container_name: app-manager
environment:
- APP_MANAGER_URI=${APP_MANAGER_URI}
- BROKER_URI=${BROKER_URI}
- CONTEXT_CATALOG_URI=${CONTEXT_CATALOG_URI}
- FLINK_MANAGER_URI=${FLINK_MANAGER_URI}
- NIFI_URI=${NIFI_URI}
- NIFI_USERNAME=${NIFI_USERNAME}
- NIFI_PASSWORD=${NIFI_PASSWORD}
ports:
- "8082:8080"
volumes:
- ./docker/app-manager/app_manager:/opt/sda/app-manager/app_manager
depends_on:
- nifi
- scorpio
consumer:
build:
context: .
dockerfile: ./docker/consumer/Dockerfile
hostname: consumer
container_name: consumer
ports:
- "8080"
volumes:
- ./docker/consumer/consumer:/opt/sda/consumer/consumer
context-catalog:
image: halverneus/static-file-server
hostname: context-catalog
container_name: context-catalog
ports:
- "8080"
volumes:
- ./docker/context-catalog:/web
eureka:
image: scorpiobroker/scorpio:eureka-server_2.1.1
hostname: eureka
container_name: eureka
ports:
- "8761"
experimenter:
build:
context: .
dockerfile: ./docker/experimenter/Dockerfile
hostname: experimenter
container_name: experimenter
environment:
- BROKER_URI=${BROKER_URI}
- CONTEXT_CATALOG_URI=${CONTEXT_CATALOG_URI}
- EXPERIMENTER_URI=${EXPERIMENTER_URI}
ports:
- "8080"
volumes:
- ./docker/experimenter/experimenter:/opt/sda/experimenter/experimenter
flink-jobmanager:
image: flink:1.14.4-scala_2.12-java11
hostname: flink-jobmanager
container_name: flink-jobmanager
ports:
- "8084:8081"
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: flink-jobmanager
volumes:
- ./flink-conf:/flink-conf
flink-taskmanager:
image: flink:1.14.4-scala_2.12-java11
hostname: flink-taskmanager
container_name: flink-taskmanager
depends_on:
- flink-jobmanager
command: taskmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 2
gateway:
image: scorpiobroker/scorpio:gateway_aaio_2.1.13
hostname: gateway
container_name: gateway
ports:
- "9090:9090"
depends_on:
- eureka
kafka:
image: bitnami/kafka
hostname: kafka
container_name: kafka
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_LOG_RETENTION_MS: 10000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 5000
ALLOW_PLAINTEXT_LISTENER: "yes"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
logging:
driver: none
nifi:
build:
context: .
dockerfile: ./docker/nifi/Dockerfile
hostname: nifi
container_name: nifi
user: root
environment:
SINGLE_USER_CREDENTIALS_USERNAME: ${NIFI_USERNAME}
# Must be of 12 characters min
SINGLE_USER_CREDENTIALS_PASSWORD: ${NIFI_PASSWORD}
NIFI_JVM_HEAP_INIT: 4g
NIFI_JVM_HEAP_MAX: 6g
ports:
- "8443:8443"
# Used by Prometheus exporter
- "8444:8444"
volumes:
- ./gnmi/gnmic-cfgs:/gnmic-cfgs
- ./docker/nifi/drivers/jinja-templates:/jinja-templates
- ./docker/nifi/drivers/nars:/opt/nifi/nifi-current/extensions
node-exporter-1:
image: prom/node-exporter
hostname: node-exporter-1
container_name: node-exporter-1
ports:
- "9100:9100"
depends_on:
- prometheus
node-exporter-2:
image: prom/node-exporter
hostname: node-exporter-2
container_name: node-exporter-2
ports:
- "9101:9100"
depends_on:
- prometheus
postgres:
image: postgis/postgis
hostname: postgres
container_name: postgres
ports:
- "5432"
environment:
POSTGRES_USER: ngb
POSTGRES_PASSWORD: ngb
POSTGRES_DB: ngb
logging:
driver: none
prometheus:
image: prom/prometheus
hostname: prometheus
container_name: prometheus
ports:
- "9099:9090"
volumes:
- ./docker/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
scorpio:
image: scorpiobroker/scorpio:scorpio-aaio_2.1.13
hostname: scorpio
container_name: scorpio
ports:
- "27015"
depends_on:
- gateway
- eureka
- postgres
- kafka
weaver:
build:
context: .
dockerfile: ./docker/weaver/Dockerfile
hostname: weaver
container_name: weaver
environment:
- BROKER_URI=${BROKER_URI}
- CONTEXT_CATALOG_URI=${CONTEXT_CATALOG_URI}
- FLINK_MANAGER_URI=${FLINK_MANAGER_URI}
- NIFI_URI=${NIFI_URI}
- NIFI_USERNAME=${NIFI_USERNAME}
- NIFI_PASSWORD=${NIFI_PASSWORD}
- WEAVER_URI=${WEAVER_URI}
ports:
- "8080"
volumes:
- ./docker/weaver/weaver:/opt/sda/weaver/weaver
depends_on:
- nifi
- scorpio
zookeeper:
image: zookeeper
hostname: zookeeper
container_name: zookeeper
ports:
- "2181"
logging:
driver: none