|
| 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, Fuji, version master |
| 16 | +# * added: Jun 30, 2019 |
| 17 | +# *******************************************************************************/ |
| 18 | + |
| 19 | +# NOTE: this Docker Compose file does not contain the security services - namely the API Gateway and Secret Store |
| 20 | + |
| 21 | +version: '3.4' |
| 22 | + |
| 23 | +# all common shared environment variables defined here: |
| 24 | +x-common-env-variables: &common-variables |
| 25 | + EDGEX_SECURITY_SECRET_STORE: "false" |
| 26 | + edgex_registry: consul://edgex-core-consul:8500 |
| 27 | + Clients_CoreData_Host: edgex-core-data |
| 28 | + Clients_Logging_Host: edgex-support-logging |
| 29 | + Logging_EnableRemote: "true" |
| 30 | + |
| 31 | +volumes: |
| 32 | + db-data: |
| 33 | + log-data: |
| 34 | + consul-config: |
| 35 | + consul-data: |
| 36 | + portainer_data: |
| 37 | + |
| 38 | +services: |
| 39 | + volume: |
| 40 | + image: nexus3.edgexfoundry.org:10004/docker-edgex-volume-arm64:master |
| 41 | + container_name: edgex-files |
| 42 | + networks: |
| 43 | + - edgex-network |
| 44 | + volumes: |
| 45 | + - db-data:/data/db:z |
| 46 | + - log-data:/edgex/logs:z |
| 47 | + - consul-config:/consul/config:z |
| 48 | + - consul-data:/consul/data:z |
| 49 | + |
| 50 | + consul: |
| 51 | + image: nexus3.edgexfoundry.org:10001/arm64v8/consul:1.3.1 |
| 52 | + ports: |
| 53 | + - "8400:8400" |
| 54 | + - "8500:8500" |
| 55 | + container_name: edgex-core-consul |
| 56 | + hostname: edgex-core-consul |
| 57 | + networks: |
| 58 | + edgex-network: |
| 59 | + aliases: |
| 60 | + - edgex-core-consul |
| 61 | + volumes: |
| 62 | + - log-data:/edgex/logs:z |
| 63 | + - consul-config:/consul/config:z |
| 64 | + - consul-data:/consul/data:z |
| 65 | + depends_on: |
| 66 | + - volume |
| 67 | + |
| 68 | + config-seed: |
| 69 | + image: nexus3.edgexfoundry.org:10004/docker-core-config-seed-go-arm64:master |
| 70 | + command: ["--profile=docker", "--cmd=/edgex/cmd-redis"] |
| 71 | + container_name: edgex-config-seed |
| 72 | + hostname: edgex-core-config-seed |
| 73 | + networks: |
| 74 | + edgex-network: |
| 75 | + aliases: |
| 76 | + - edgex-core-config-seed |
| 77 | + environment: |
| 78 | + <<: *common-variables |
| 79 | + volumes: |
| 80 | + - log-data:/edgex/logs:z |
| 81 | + depends_on: |
| 82 | + - volume |
| 83 | + - consul |
| 84 | + |
| 85 | + redis: |
| 86 | + image: arm64v8/redis:5.0.5-alpine |
| 87 | + ports: |
| 88 | + - "6379:6379" |
| 89 | + container_name: edgex-redis |
| 90 | + hostname: edgex-redis |
| 91 | + networks: |
| 92 | + - edgex-network |
| 93 | + environment: |
| 94 | + <<: *common-variables |
| 95 | + volumes: |
| 96 | + - db-data:/data/db:z |
| 97 | + depends_on: |
| 98 | + - volume |
| 99 | + |
| 100 | + logging: |
| 101 | + image: nexus3.edgexfoundry.org:10004/docker-support-logging-go-arm64:master |
| 102 | + ports: |
| 103 | + - "48061:48061" |
| 104 | + container_name: edgex-support-logging |
| 105 | + hostname: edgex-support-logging |
| 106 | + networks: |
| 107 | + - edgex-network |
| 108 | + environment: |
| 109 | + <<: *common-variables |
| 110 | + volumes: |
| 111 | + - log-data:/edgex/logs:z |
| 112 | + depends_on: |
| 113 | + - config-seed |
| 114 | + - volume |
| 115 | + |
| 116 | + system: |
| 117 | + image: nexus3.edgexfoundry.org:10004/docker-sys-mgmt-agent-go-arm64:master |
| 118 | + ports: |
| 119 | + - "48090:48090" |
| 120 | + container_name: edgex-sys-mgmt-agent |
| 121 | + hostname: edgex-sys-mgmt-agent |
| 122 | + networks: |
| 123 | + - edgex-network |
| 124 | + environment: |
| 125 | + <<: *common-variables |
| 126 | + volumes: |
| 127 | + - /var/run/docker.sock:/var/run/docker.sock:z |
| 128 | + depends_on: |
| 129 | + - logging |
| 130 | + |
| 131 | + notifications: |
| 132 | + image: nexus3.edgexfoundry.org:10004/docker-support-notifications-go-arm64:master |
| 133 | + ports: |
| 134 | + - "48060:48060" |
| 135 | + container_name: edgex-support-notifications |
| 136 | + hostname: edgex-support-notifications |
| 137 | + networks: |
| 138 | + - edgex-network |
| 139 | + environment: |
| 140 | + <<: *common-variables |
| 141 | + depends_on: |
| 142 | + - logging |
| 143 | + - redis |
| 144 | + |
| 145 | + metadata: |
| 146 | + image: nexus3.edgexfoundry.org:10004/docker-core-metadata-go-arm64:master |
| 147 | + ports: |
| 148 | + - "48081:48081" |
| 149 | + container_name: edgex-core-metadata |
| 150 | + hostname: edgex-core-metadata |
| 151 | + networks: |
| 152 | + - edgex-network |
| 153 | + environment: |
| 154 | + <<: *common-variables |
| 155 | + depends_on: |
| 156 | + - logging |
| 157 | + - redis |
| 158 | + |
| 159 | + data: |
| 160 | + image: nexus3.edgexfoundry.org:10004/docker-core-data-go-arm64:master |
| 161 | + ports: |
| 162 | + - "48080:48080" |
| 163 | + - "5563:5563" |
| 164 | + container_name: edgex-core-data |
| 165 | + hostname: edgex-core-data |
| 166 | + networks: |
| 167 | + - edgex-network |
| 168 | + environment: |
| 169 | + <<: *common-variables |
| 170 | + depends_on: |
| 171 | + - logging |
| 172 | + - redis |
| 173 | + |
| 174 | + command: |
| 175 | + image: nexus3.edgexfoundry.org:10004/docker-core-command-go-arm64:master |
| 176 | + ports: |
| 177 | + - "48082:48082" |
| 178 | + container_name: edgex-core-command |
| 179 | + hostname: edgex-core-command |
| 180 | + networks: |
| 181 | + - edgex-network |
| 182 | + environment: |
| 183 | + <<: *common-variables |
| 184 | + depends_on: |
| 185 | + - metadata |
| 186 | + |
| 187 | + scheduler: |
| 188 | + image: nexus3.edgexfoundry.org:10004/docker-support-scheduler-go-arm64:master |
| 189 | + ports: |
| 190 | + - "48085:48085" |
| 191 | + container_name: edgex-support-scheduler |
| 192 | + hostname: edgex-support-scheduler |
| 193 | + networks: |
| 194 | + - edgex-network |
| 195 | + environment: |
| 196 | + <<: *common-variables |
| 197 | + depends_on: |
| 198 | + - metadata |
| 199 | + - redis |
| 200 | + |
| 201 | + app-service-rules: |
| 202 | + image: nexus3.edgexfoundry.org:10004/docker-app-service-configurable-arm64:master |
| 203 | + ports: |
| 204 | + - "48100:48100" |
| 205 | + container_name: edgex-app-service-configurable-rules |
| 206 | + hostname: edgex-app-service-configurable-rules |
| 207 | + entrypoint: ["/app-service-configurable"] |
| 208 | + command: ["--registry","--confdir=/res", "--skipVersionCheck=true"] |
| 209 | + networks: |
| 210 | + edgex-network: |
| 211 | + aliases: |
| 212 | + - edgex-app-service-configurable-rules |
| 213 | + environment: |
| 214 | + <<: *common-variables |
| 215 | + edgex_service: http://edgex-app-service-configurable-rules:48100 |
| 216 | + edgex_profile: rules-engine |
| 217 | + Service_Host: edgex-app-service-configurable-rules |
| 218 | + MessageBus_SubscribeHost_Host: edgex-core-data |
| 219 | + depends_on: |
| 220 | + - consul |
| 221 | + - logging |
| 222 | + - data |
| 223 | + |
| 224 | + rulesengine: |
| 225 | + image: nexus3.edgexfoundry.org:10004/docker-support-rulesengine-arm64:master |
| 226 | + ports: |
| 227 | + - "48075:48075" |
| 228 | + container_name: edgex-support-rulesengine |
| 229 | + hostname: edgex-support-rulesengine |
| 230 | + networks: |
| 231 | + edgex-network: |
| 232 | + aliases: |
| 233 | + - edgex-support-rulesengine |
| 234 | + depends_on: |
| 235 | + - app-service-rules |
| 236 | + |
| 237 | +################################################################# |
| 238 | +# Device Services |
| 239 | +################################################################# |
| 240 | + |
| 241 | + device-virtual: |
| 242 | + image: nexus3.edgexfoundry.org:10004/docker-device-virtual-go-arm64:master |
| 243 | + ports: |
| 244 | + - "49990:49990" |
| 245 | + container_name: edgex-device-virtual |
| 246 | + hostname: edgex-device-virtual |
| 247 | + networks: |
| 248 | + edgex-network: |
| 249 | + aliases: |
| 250 | + - edgex-device-virtual |
| 251 | + depends_on: |
| 252 | + - data |
| 253 | + - command |
| 254 | + |
| 255 | + # device-random: |
| 256 | + # image: nexus3.edgexfoundry.org:10004/docker-device-random-go-arm64:master |
| 257 | + # ports: |
| 258 | + # - "49988:49988" |
| 259 | + # container_name: edgex-device-random |
| 260 | + # hostname: edgex-device-random |
| 261 | + # networks: |
| 262 | + # - edgex-network |
| 263 | + # volumes: |
| 264 | + # - log-data:/edgex/logs:z |
| 265 | + # - consul-config:/consul/config:z |
| 266 | + # - consul-data:/consul/data:z |
| 267 | + # depends_on: |
| 268 | + # - data |
| 269 | + # - command |
| 270 | + # |
| 271 | + # device-mqtt: |
| 272 | + # image: nexus3.edgexfoundry.org:10004/docker-device-mqtt-go-arm64:master |
| 273 | + # ports: |
| 274 | + # - "49982:49982" |
| 275 | + # container_name: edgex-device-mqtt |
| 276 | + # hostname: edgex-device-mqtt |
| 277 | + # networks: |
| 278 | + # - edgex-network |
| 279 | + # volumes: |
| 280 | + # - log-data:/edgex/logs:z |
| 281 | + # - consul-config:/consul/config:z |
| 282 | + # - consul-data:/consul/data:z |
| 283 | + # depends_on: |
| 284 | + # - data |
| 285 | + # - command |
| 286 | + # |
| 287 | + # device-modbus: |
| 288 | + # image: nexus3.edgexfoundry.org:10004/docker-device-modbus-go-arm64:master |
| 289 | + # ports: |
| 290 | + # - "49991:49991" |
| 291 | + # container_name: edgex-device-modbus |
| 292 | + # hostname: edgex-device-modbus |
| 293 | + # networks: |
| 294 | + # - edgex-network |
| 295 | + # volumes: |
| 296 | + # - log-data:/edgex/logs:z |
| 297 | + # depends_on: |
| 298 | + # - data |
| 299 | + # - command |
| 300 | + # |
| 301 | + # device-snmp: |
| 302 | + # image: nexus3.edgexfoundry.org:10004/docker-device-snmp-go-arm64:master |
| 303 | + # ports: |
| 304 | + # - "49993:49993" |
| 305 | + # container_name: edgex-device-snmp |
| 306 | + # hostname: edgex-device-snmp |
| 307 | + # networks: |
| 308 | + # - edgex-network |
| 309 | + # volumes: |
| 310 | + # - log-data:/edgex/logs:z |
| 311 | + # depends_on: |
| 312 | + # - data |
| 313 | + # - command |
| 314 | + |
| 315 | +################################################################# |
| 316 | +# UIs |
| 317 | +################################################################# |
| 318 | + ui: |
| 319 | + image: nexus3.edgexfoundry.org:10004/docker-edgex-ui-go-arm64:master |
| 320 | + ports: |
| 321 | + - "4000:4000" |
| 322 | + container_name: edgex-ui-go |
| 323 | + hostname: edgex-ui-go |
| 324 | + networks: |
| 325 | + - edgex-network |
| 326 | + depends_on: |
| 327 | + - data |
| 328 | + - command |
| 329 | + |
| 330 | +################################################################# |
| 331 | +# Tooling |
| 332 | +################################################################# |
| 333 | + |
| 334 | + portainer: |
| 335 | + image: portainer/portainer |
| 336 | + ports: |
| 337 | + - "9000:9000" |
| 338 | + command: -H unix:///var/run/docker.sock |
| 339 | + volumes: |
| 340 | + - /var/run/docker.sock:/var/run/docker.sock:z |
| 341 | + - portainer_data:/data |
| 342 | + depends_on: |
| 343 | + - volume |
| 344 | + |
| 345 | +networks: |
| 346 | + edgex-network: |
| 347 | + driver: "bridge" |
| 348 | + |
0 commit comments