|
| 1 | +# /******************************************************************************* |
| 2 | +# * Copyright 2018 Dell Inc. |
| 3 | +# * |
| 4 | +# * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 5 | +# * in compliance with the License. You may obtain a copy of the License at |
| 6 | +# * |
| 7 | +# * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# * |
| 9 | +# * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 10 | +# * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 11 | +# * or implied. See the License for the specific language governing permissions and limitations under |
| 12 | +# * the License. |
| 13 | +# * |
| 14 | +# * @author: Jim White, Dell |
| 15 | +# * EdgeX Foundry, California Preview, version 0.5.2 |
| 16 | +# * added: May 3, 2018 |
| 17 | +# Login to the nexus3.edgexfoundry.org:10004 registry instance with: |
| 18 | +# docker login nexus3.edgexfoundry.org:10004 |
| 19 | +# u: docker, p: docker |
| 20 | +# *******************************************************************************/ |
| 21 | + |
| 22 | +version: '3' |
| 23 | +volumes: |
| 24 | + db-data: |
| 25 | + log-data: |
| 26 | + consul-config: |
| 27 | + consul-data: |
| 28 | + |
| 29 | +services: |
| 30 | + volume: |
| 31 | + image: edgexfoundry/docker-edgex-volume |
| 32 | + container_name: edgex-files |
| 33 | + networks: |
| 34 | + - edgex-network |
| 35 | + volumes: |
| 36 | + - db-data:/data/db |
| 37 | + - log-data:/edgex/logs |
| 38 | + - consul-config:/consul/config |
| 39 | + - consul-data:/consul/data |
| 40 | + |
| 41 | + config-seed: |
| 42 | + image: edgexfoundry/docker-core-config-seed:0.2.1 |
| 43 | + ports: |
| 44 | + - "8300:8300" |
| 45 | + - "8400:8400" |
| 46 | + - "8500:8500" |
| 47 | + - "8600:8600" |
| 48 | + container_name: edgex-config-seed |
| 49 | + hostname: edgex-core-consul |
| 50 | + networks: |
| 51 | + edgex-network: |
| 52 | + aliases: |
| 53 | + - edgex-core-consul |
| 54 | + volumes: |
| 55 | + - db-data:/data/db |
| 56 | + - log-data:/edgex/logs |
| 57 | + - consul-config:/consul/config |
| 58 | + - consul-data:/consul/data |
| 59 | + depends_on: |
| 60 | + - volume |
| 61 | + |
| 62 | + mongo: |
| 63 | + image: edgexfoundry/docker-edgex-mongo:0.2 |
| 64 | + ports: |
| 65 | + - "27017:27017" |
| 66 | + container_name: edgex-mongo |
| 67 | + hostname: edgex-mongo |
| 68 | + networks: |
| 69 | + - edgex-network |
| 70 | + volumes: |
| 71 | + - db-data:/data/db |
| 72 | + - log-data:/edgex/logs |
| 73 | + - consul-config:/consul/config |
| 74 | + - consul-data:/consul/data |
| 75 | + depends_on: |
| 76 | + - volume |
| 77 | + |
| 78 | + logging: |
| 79 | + image: edgexfoundry/docker-support-logging-go:0.5.2 |
| 80 | + ports: |
| 81 | + - "48061:48061" |
| 82 | + container_name: edgex-support-logging |
| 83 | + hostname: edgex-support-logging |
| 84 | + networks: |
| 85 | + - edgex-network |
| 86 | + volumes: |
| 87 | + - db-data:/data/db |
| 88 | + - log-data:/edgex/logs |
| 89 | + - consul-config:/consul/config |
| 90 | + - consul-data:/consul/data |
| 91 | + depends_on: |
| 92 | + - config-seed |
| 93 | + - mongo |
| 94 | + - volume |
| 95 | + |
| 96 | + notifications: |
| 97 | + image: nexus3.edgexfoundry.org:10004/docker-support-notifications:0.5.0 |
| 98 | + ports: |
| 99 | + - "48060:48060" |
| 100 | + container_name: edgex-support-notifications |
| 101 | + hostname: edgex-support-notifications |
| 102 | + networks: |
| 103 | + - edgex-network |
| 104 | + volumes: |
| 105 | + - db-data:/data/db |
| 106 | + - log-data:/edgex/logs |
| 107 | + - consul-config:/consul/config |
| 108 | + - consul-data:/consul/data |
| 109 | + depends_on: |
| 110 | + - logging |
| 111 | + |
| 112 | + metadata: |
| 113 | + image: edgexfoundry/docker-core-metadata-go:0.5.2 |
| 114 | + ports: |
| 115 | + - "48081:48081" |
| 116 | + container_name: edgex-core-metadata |
| 117 | + hostname: edgex-core-metadata |
| 118 | + networks: |
| 119 | + - edgex-network |
| 120 | + volumes: |
| 121 | + - db-data:/data/db |
| 122 | + - log-data:/edgex/logs |
| 123 | + - consul-config:/consul/config |
| 124 | + - consul-data:/consul/data |
| 125 | + depends_on: |
| 126 | + - logging |
| 127 | + |
| 128 | + data: |
| 129 | + image: edgexfoundry/docker-core-data-go:0.5.2 |
| 130 | + ports: |
| 131 | + - "48080:48080" |
| 132 | + - "5563:5563" |
| 133 | + container_name: edgex-core-data |
| 134 | + hostname: edgex-core-data |
| 135 | + networks: |
| 136 | + - edgex-network |
| 137 | + volumes: |
| 138 | + - db-data:/data/db |
| 139 | + - log-data:/edgex/logs |
| 140 | + - consul-config:/consul/config |
| 141 | + - consul-data:/consul/data |
| 142 | + depends_on: |
| 143 | + - logging |
| 144 | + |
| 145 | + command: |
| 146 | + image: edgexfoundry/docker-core-command-go:0.5.2 |
| 147 | + ports: |
| 148 | + - "48082:48082" |
| 149 | + container_name: edgex-core-command |
| 150 | + hostname: edgex-core-command |
| 151 | + networks: |
| 152 | + - edgex-network |
| 153 | + volumes: |
| 154 | + - db-data:/data/db |
| 155 | + - log-data:/edgex/logs |
| 156 | + - consul-config:/consul/config |
| 157 | + - consul-data:/consul/data |
| 158 | + depends_on: |
| 159 | + - metadata |
| 160 | + |
| 161 | +# scheduler container does not come up on Consul - bug fix in the works. |
| 162 | + scheduler: |
| 163 | + image: nexus3.edgexfoundry.org:10004/docker-support-scheduler:0.5.0 |
| 164 | + ports: |
| 165 | + - "48085:48085" |
| 166 | + container_name: edgex-support-scheduler |
| 167 | + hostname: edgex-support-scheduler |
| 168 | + networks: |
| 169 | + - edgex-network |
| 170 | + volumes: |
| 171 | + - db-data:/data/db |
| 172 | + - log-data:/edgex/logs |
| 173 | + - consul-config:/consul/config |
| 174 | + - consul-data:/consul/data |
| 175 | + depends_on: |
| 176 | + - metadata |
| 177 | + |
| 178 | + export-client: |
| 179 | + image: edgexfoundry/docker-export-client-go:0.5.2 |
| 180 | + ports: |
| 181 | + - "48071:48071" |
| 182 | + container_name: edgex-export-client |
| 183 | + hostname: edgex-export-client |
| 184 | + networks: |
| 185 | + - edgex-network |
| 186 | + volumes: |
| 187 | + - db-data:/data/db |
| 188 | + - log-data:/edgex/logs |
| 189 | + - consul-config:/consul/config |
| 190 | + - consul-data:/consul/data |
| 191 | + depends_on: |
| 192 | + - data |
| 193 | + environment: |
| 194 | + - EXPORT_CLIENT_MONGO_URL=edgex-mongo |
| 195 | + - EXPORT_CLIENT_DISTRO_HOST=export-distro |
| 196 | + - EXPORT_CLIENT_CONSUL_HOST=edgex-config-seed |
| 197 | + |
| 198 | + export-distro: |
| 199 | + image: edgexfoundry/docker-export-distro-go:0.5.2 |
| 200 | + ports: |
| 201 | + - "48070:48070" |
| 202 | + container_name: edgex-export-distro |
| 203 | + hostname: edgex-export-distro |
| 204 | + networks: |
| 205 | + - edgex-network |
| 206 | + volumes: |
| 207 | + - db-data:/data/db |
| 208 | + - log-data:/edgex/logs |
| 209 | + - consul-config:/consul/config |
| 210 | + - consul-data:/consul/data |
| 211 | + depends_on: |
| 212 | + - export-client |
| 213 | + environment: |
| 214 | + - EXPORT_DISTRO_CLIENT_HOST=export-client |
| 215 | + - EXPORT_DISTRO_DATA_HOST=edgex-core-data |
| 216 | + - EXPORT_DISTRO_CONSUL_HOST=edgex-config-seed |
| 217 | + - EXPORT_DISTRO_MQTTS_CERT_FILE=none |
| 218 | + - EXPORT_DISTRO_MQTTS_KEY_FILE=none |
| 219 | + |
| 220 | + rulesengine: |
| 221 | + image: nexus3.edgexfoundry.org:10004/docker-support-rulesengine:0.5.0 |
| 222 | + ports: |
| 223 | + - "48075:48075" |
| 224 | + container_name: edgex-support-rulesengine |
| 225 | + hostname: edgex-support-rulesengine |
| 226 | + networks: |
| 227 | + - edgex-network |
| 228 | + volumes: |
| 229 | + - db-data:/data/db |
| 230 | + - log-data:/edgex/logs |
| 231 | + - consul-config:/consul/config |
| 232 | + - consul-data:/consul/data |
| 233 | + depends_on: |
| 234 | + - export-distro |
| 235 | + |
| 236 | +################################################################# |
| 237 | +# Device Services |
| 238 | +################################################################# |
| 239 | + |
| 240 | + device-virtual: |
| 241 | + image: nexus3.edgexfoundry.org:10004/docker-device-virtual:0.5.0 |
| 242 | + ports: |
| 243 | + - "49990:49990" |
| 244 | + container_name: edgex-device-virtual |
| 245 | + hostname: edgex-device-virtual |
| 246 | + networks: |
| 247 | + - edgex-network |
| 248 | + volumes: |
| 249 | + - db-data:/data/db |
| 250 | + - log-data:/edgex/logs |
| 251 | + - consul-config:/consul/config |
| 252 | + - consul-data:/consul/data |
| 253 | + depends_on: |
| 254 | + - data |
| 255 | + - command |
| 256 | + |
| 257 | +# device-bluetooth: |
| 258 | +# image: nexus3.edgexfoundry.org:10004/docker-device-bluetooth:0.5.0 |
| 259 | +# ports: |
| 260 | +# - "49988:49988" |
| 261 | +# - "5000:5000" |
| 262 | +# container_name: edgex-device-bluetooth |
| 263 | +# hostname: edgex-device-bluetooth |
| 264 | +# privileged: true |
| 265 | +# network_mode: "host" |
| 266 | +# cap_add: |
| 267 | +# - NET_ADMIN |
| 268 | +# # networks: |
| 269 | +# # - edgex-network |
| 270 | +# volumes: |
| 271 | +# - db-data:/data/db |
| 272 | +# - log-data:/edgex/logs |
| 273 | +# - consul-config:/consul/config |
| 274 | +# - consul-data:/consul/data |
| 275 | +# depends_on: |
| 276 | +# - data |
| 277 | +# - command |
| 278 | + |
| 279 | +# device-snmp: |
| 280 | +# image: nexus3.edgexfoundry.org:10004/docker-device-snmp:0.5.0 |
| 281 | +# ports: |
| 282 | +# - "49989:49989" |
| 283 | +# container_name: edgex-device-snmp |
| 284 | +# hostname: edgex-device-snmp |
| 285 | +# networks: |
| 286 | +# - edgex-network |
| 287 | +# volumes: |
| 288 | +# - db-data:/data/db |
| 289 | +# - log-data:/edgex/logs |
| 290 | +# - consul-config:/consul/config |
| 291 | +# - consul-data:/consul/data |
| 292 | +# depends_on: |
| 293 | +# - data |
| 294 | +# - command |
| 295 | + |
| 296 | +# device-modbus: |
| 297 | +# image: nexus3.edgexfoundry.org:10004/docker-device-modbus:0.5.0 |
| 298 | +# ports: |
| 299 | +# - "49991:49991" |
| 300 | +# container_name: edgex-device-modbus |
| 301 | +# networks: |
| 302 | +# - edgex-network |
| 303 | +# volumes: |
| 304 | +# - db-data:/data/db |
| 305 | +# - log-data:/edgex/logs |
| 306 | +# - consul-config:/consul/config |
| 307 | +# - consul-data:/consul/data |
| 308 | +# privileged: true |
| 309 | +# depends_on: |
| 310 | +# - data |
| 311 | +# - command |
| 312 | + |
| 313 | +# device-fischertechnik: |
| 314 | +# image: nexus3.edgexfoundry.org:10004/docker-device-fischertechnik:0.5.0 |
| 315 | +# ports: |
| 316 | +# - "49985:49985" |
| 317 | +# container_name: edgex-device-fischertechnik |
| 318 | +# networks: |
| 319 | +# - edgex-network |
| 320 | +# volumes: |
| 321 | +# - db-data:/data/db |
| 322 | +# - log-data:/edgex/logs |
| 323 | +# - consul-config:/consul/config |
| 324 | +# - consul-data:/consul/data |
| 325 | +# privileged: true |
| 326 | +# depends_on: |
| 327 | +# - data |
| 328 | +# - command |
| 329 | + |
| 330 | +# device-bacnet: |
| 331 | +# image: nexus3.edgexfoundry.org:10004/docker-device-bacnet:0.5.0 |
| 332 | +# ports: |
| 333 | +# - "49986:49986" |
| 334 | +# - "5002:5002" |
| 335 | +# container_name: edgex-device-bacnet |
| 336 | +# hostname: edgex-device-bacnet |
| 337 | +# networks: |
| 338 | +# - edgex-network |
| 339 | +# volumes: |
| 340 | +# - db-data:/data/db |
| 341 | +# - log-data:/edgex/logs |
| 342 | +# - consul-config:/consul/config |
| 343 | +# - consul-data:/consul/data |
| 344 | +# depends_on: |
| 345 | +# - data |
| 346 | +# - command |
| 347 | + |
| 348 | +# device-mqtt: |
| 349 | +# image: nexus3.edgexfoundry.org:10004/docker-device-mqtt:0.5.0 |
| 350 | +# ports: |
| 351 | +# - "49982:49982" |
| 352 | +# - "14377:14377" |
| 353 | +# container_name: edgex-device-mqtt |
| 354 | +# hostname: edgex-device-mqtt |
| 355 | +# networks: |
| 356 | +# - edgex-network |
| 357 | +# volumes: |
| 358 | +# - db-data:/data/db |
| 359 | +# - log-data:/edgex/logs |
| 360 | +# - consul-config:/consul/config |
| 361 | +# - consul-data:/consul/data |
| 362 | +# depends_on: |
| 363 | +# - data |
| 364 | +# - command |
| 365 | + |
| 366 | +networks: |
| 367 | + edgex-network: |
| 368 | + driver: "bridge" |
| 369 | +... |
0 commit comments