Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | version: "3" |
Filip Krzywka | 66e2ad6 | 2019-03-20 14:03:02 +0100 | [diff] [blame] | 2 | # ============LICENSE_START======================================================= |
| 3 | # csit-dcaegen2-collectors-hv-ves |
| 4 | # ================================================================================ |
| 5 | # Copyright (C) 2018-2019 NOKIA |
| 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 20 | |
| 21 | networks: |
| 22 | ves-hv-default: |
| 23 | external: |
| 24 | name: $CONTAINERS_NETWORK |
| 25 | |
| 26 | services: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 27 | |
| 28 | # |
| 29 | # DMaaP Message Router |
| 30 | # |
| 31 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 32 | zookeeper: |
| 33 | image: wurstmeister/zookeeper |
| 34 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 35 | - "2181:2181" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 36 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 37 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 38 | |
| 39 | kafka: |
| 40 | image: wurstmeister/kafka |
| 41 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 42 | - "9092:9092" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 43 | environment: |
| 44 | KAFKA_ADVERTISED_HOST_NAME: "kafka" |
| 45 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 46 | KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" |
| 47 | KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092" |
| 48 | volumes: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 49 | - /var/run/docker.sock:/var/run/docker.sock |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 50 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 51 | - zookeeper |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 52 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 53 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 54 | |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 55 | # |
| 56 | # Consul / CBS |
| 57 | # |
| 58 | |
| 59 | consul-server: |
| 60 | image: docker.io/consul:1.0.6 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 61 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 62 | - "8500:8500" |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 63 | volumes: |
Filip Krzywka | 83cb247 | 2019-03-20 13:38:17 +0100 | [diff] [blame] | 64 | - ./consul/:/consul/config |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 65 | networks: |
Filip Krzywka | 83cb247 | 2019-03-20 13:38:17 +0100 | [diff] [blame] | 66 | - ves-hv-default |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 67 | |
| 68 | config-binding-service: |
| 69 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4 |
| 70 | ports: |
| 71 | - "10000:10000" |
| 72 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 73 | - CONSUL_HOST |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 74 | depends_on: |
| 75 | - consul-server |
| 76 | networks: |
Filip Krzywka | 83cb247 | 2019-03-20 13:38:17 +0100 | [diff] [blame] | 77 | - ves-hv-default |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 78 | |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 79 | # |
| 80 | # DCAE HV VES Collector |
| 81 | # |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 82 | |
| 83 | ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 84 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 85 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 86 | - "6060:6060" |
| 87 | - "6061:6061/tcp" |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 88 | command: ["--configuration-file", "/etc/hv-ves/configuration/secure.json"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 89 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 90 | - JAVA_OPTS |
| 91 | - HOSTNAME=${HV_VES_HOSTNAME} |
| 92 | - CONSUL_HOST |
| 93 | - CONFIG_BINDING_SERVICE |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 94 | healthcheck: |
| 95 | interval: 10s |
| 96 | timeout: 5s |
| 97 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 98 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 99 | volumes: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 100 | - ./collector/:/etc/hv-ves/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 101 | depends_on: |
| 102 | - config-binding-service |
| 103 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 104 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 105 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 106 | |
| 107 | unencrypted-ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 108 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 109 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 110 | - "7060:6060" |
| 111 | - "7061:6061/tcp" |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 112 | command: ["--configuration-file", "/etc/hv-ves/configuration/insecure.json"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 113 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 114 | - JAVA_OPTS |
| 115 | - HOSTNAME=${HV_VES_HOSTNAME} |
| 116 | - CONSUL_HOST |
| 117 | - CONFIG_BINDING_SERVICE |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 118 | healthcheck: |
| 119 | interval: 10s |
| 120 | timeout: 5s |
| 121 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 122 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 123 | volumes: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 124 | - ./collector/:/etc/hv-ves/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 125 | depends_on: |
| 126 | - config-binding-service |
| 127 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 128 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 129 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 130 | |
| 131 | dcae-app-simulator: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 132 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${DCAE_APP_SIMULATOR_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 133 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 134 | - "6063:6063/tcp" |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 135 | command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"] |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 136 | healthcheck: |
| 137 | interval: 10s |
| 138 | timeout: 5s |
| 139 | retries: 2 |
| 140 | test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck" |
| 141 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 142 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 143 | networks: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 144 | - ves-hv-default |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 145 | |