-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment.template.json
169 lines (169 loc) · 5.35 KB
/
deployment.template.json
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
{
"$schema-template": "4.0.0",
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"modules": {
"influxdb": {
"settings": {
"image": "${MODULES.influxdb}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"8086/tcp\":[{\"HostPort\":\"8086\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 1
},
"grafana": {
"settings": {
"image": "${MODULES.grafana}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"3000/tcp\":[{\"HostPort\":\"3000\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 2
},
"simplertspserver": {
"settings": {
"image": "${MODULES.simplertsp}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"8554/tcp\":[{\"HostPort\":\"8554\"}],\"8888/tcp\":[{\"HostPort\":\"8888\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 3
},
"mosquittoserver": {
"settings": {
"image": "${MODULES.mosquitto}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"1883/tcp\":[{\"HostPort\":\"1883\"}],\"9001/tcp\":[{\"HostPort\":\"9001\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 4
},
"opcuaserver": {
"settings": {
"image": "${MODULES.opcua}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"4840/tcp\":[{\"HostPort\":\"4840\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 5
},
"telegraf": {
"settings": {
"image": "${MODULES.telegraf}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5100/tcp\":[{\"HostPort\":\"5100\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 6
},
"industrial-safety": {
"settings": {
"image": "${MODULES.industrial-safety}",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5000/tcp\":[{\"HostPort\":\"5000\"}]}}}"
},
"type": "docker",
"version": "1.0",
"status": "running",
"restartPolicy": "always",
"startupOrder": 7,
"env": {
"DEFECT_TARGET_HARDWARE": {
"value": "$DEFECT_TARGET_HARDWARE"
},
"IOTHUB_DEVICE_DPS_ENDPOINT": {
"value": "$IOTHUB_DEVICE_DPS_ENDPOINT"
},
"IOTHUB_DEVICE_DPS_ID_SCOPE": {
"value": "$IOTHUB_DEVICE_DPS_ID_SCOPE"
},
"IOTHUB_DEVICE_DPS_DEVICE_ID": {
"value": "$IOTHUB_DEVICE_DPS_DEVICE_ID"
},
"IOTHUB_DEVICE_DPS_DEVICE_KEY": {
"value": "$IOTHUB_DEVICE_DPS_DEVICE_KEY"
}
}
}
},
"runtime": {
"settings": {
"minDockerVersion": "v1.25",
"registryCredentials": {
"industrialsafety": {
"username": "$CONTAINER_REGISTRY_USERNAME",
"password": "$CONTAINER_REGISTRY_PASSWORD",
"address": "$CONTAINER_REGISTRY_USERNAME.azurecr.io"
}
}
},
"type": "docker"
},
"schemaVersion": "1.1",
"systemModules": {
"edgeAgent": {
"settings": {
"image": "mcr.microsoft.com/azureiotedge-agent:1.1",
"createOptions": ""
},
"type": "docker"
},
"edgeHub": {
"settings": {
"image": "mcr.microsoft.com/azureiotedge-hub:1.1",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"443/tcp\":[{\"HostPort\":\"443\"}],\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}]}}}"
},
"type": "docker",
"status": "running",
"restartPolicy": "always"
}
}
}
},
"$edgeHub": {
"properties.desired": {
"routes": {
"route": "FROM /messages/* INTO $upstream"
},
"schemaVersion": "1.1",
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
},
"influxdb": {
"properties.desired": {}
},
"grafana": {
"properties.desired": {}
},
"simplertspserver": {
"properties.desired": {}
},
"mosquittoserver": {
"properties.desired": {}
},
"opcuaserver": {
"properties.desired": {}
},
"telegraf": {
"properties.desired": {}
},
"industrial-safety": {
"properties.desired": {}
}
}
}