forked from intel-retail/automated-vending
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.edgex.yml
228 lines (226 loc) · 6.7 KB
/
docker-compose.edgex.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# Copyright © 2020-2022 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
networks:
edgex-network:
driver: bridge
services:
consul:
command: agent -ui -bootstrap -server -client 0.0.0.0
container_name: edgex-core-consul
hostname: edgex-core-consul
image: consul:1.10.10
networks:
edgex-network: {}
ports:
- 127.0.0.1:8500:8500/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: root:root
volumes:
- consul-config:/consul/config:z
- consul-data:/consul/data:z
database:
container_name: edgex-redis
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASES_PRIMARY_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
hostname: edgex-redis
image: redis:6.2.6-alpine
networks:
edgex-network: {}
ports:
- 127.0.0.1:6379:6379/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: root:root
volumes:
- db-data:/data:z
notifications:
container_name: edgex-support-notifications
depends_on:
consul:
condition: service_started
database:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASES_PRIMARY_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
SERVICE_HOST: edgex-support-notifications
hostname: edgex-support-notifications
image: edgexfoundry/support-notifications:2.2.0
networks:
edgex-network: {}
ports:
- 127.0.0.1:59860:59860/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
metadata:
container_name: edgex-core-metadata
depends_on:
consul:
condition: service_started
database:
condition: service_started
notifications:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASES_PRIMARY_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "false"
NOTIFICATIONS_SENDER: edgex-core-metadata
REGISTRY_HOST: edgex-core-consul
SERVICE_HOST: edgex-core-metadata
hostname: edgex-core-metadata
image: edgexfoundry/core-metadata:2.2.0
networks:
edgex-network: {}
ports:
- 127.0.0.1:59881:59881/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
data:
container_name: edgex-core-data
depends_on:
consul:
condition: service_started
database:
condition: service_started
metadata:
condition: service_started
mqtt-broker:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASES_PRIMARY_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "false"
MESSAGEQUEUE_AUTHMODE: none
MESSAGEQUEUE_HOST: edgex-mqtt-broker
MESSAGEQUEUE_OPTIONAL_CLIENTID: core-data
MESSAGEQUEUE_PORT: 1883
MESSAGEQUEUE_PROTOCOL: tcp
MESSAGEQUEUE_TYPE: mqtt
REGISTRY_HOST: edgex-core-consul
SERVICE_HOST: edgex-core-data
hostname: edgex-core-data
image: edgexfoundry/core-data:2.2.0
networks:
edgex-network: {}
ports:
- 127.0.0.1:5563:5563/tcp
- 127.0.0.1:59880:59880/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
command:
container_name: edgex-core-command
depends_on:
consul:
condition: service_started
database:
condition: service_started
metadata:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASES_PRIMARY_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
SERVICE_HOST: edgex-core-command
hostname: edgex-core-command
image: edgexfoundry/core-command:2.2.0
networks:
edgex-network: {}
ports:
- 127.0.0.1:59882:59882/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
mqtt-broker:
command: /usr/sbin/mosquitto -c /mosquitto-no-auth.conf
container_name: edgex-mqtt-broker
hostname: edgex-mqtt-broker
image: eclipse-mosquitto:2.0.14
networks:
edgex-network: {}
ports:
- 127.0.0.1:1883:1883/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
device-mqtt:
container_name: edgex-device-mqtt
depends_on:
- consul
- data
- metadata
- mqtt-broker
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
EDGEX_SECURITY_SECRET_STORE: "false"
MESSAGEQUEUE_HOST: edgex-mqtt-broker
MQTTBROKERINFO_HOST: edgex-mqtt-broker
REGISTRY_HOST: edgex-core-consul
SERVICE_HOST: edgex-device-mqtt
volumes:
- ./res/device-mqtt:/res
hostname: edgex-device-mqtt
image: edgexfoundry/device-mqtt:2.2.0
networks:
edgex-network: {}
ports:
- 127.0.0.1:59982:59982/tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
version: '3.7'
volumes:
consul-config: {}
consul-data: {}
db-data: {}
kuiper-data: {}