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: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 22 | hv-ves-default: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 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: |
kjaniak | 605be8e | 2019-04-23 16:11:37 +0200 | [diff] [blame] | 33 | image: ${ZOOKEEPER_IMAGE_FULL_NAME} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 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: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 37 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 38 | |
| 39 | kafka: |
kjaniak | 605be8e | 2019-04-23 16:11:37 +0200 | [diff] [blame] | 40 | image: ${KAFKA_IMAGE_FULL_NAME} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 41 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 42 | - "9092:9092" |
kjaniak | 605be8e | 2019-04-23 16:11:37 +0200 | [diff] [blame] | 43 | - "9093:9093" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 44 | environment: |
kjaniak | 605be8e | 2019-04-23 16:11:37 +0200 | [diff] [blame] | 45 | HOST_IP: 127.0.0.1 |
| 46 | KAFKA_BROKER_ID: 0 |
| 47 | ENDPOINT_PORT: 30490 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 48 | KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" |
kjaniak | 605be8e | 2019-04-23 16:11:37 +0200 | [diff] [blame] | 49 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" |
| 50 | KAFKA_DELETE_TOPIC_ENABLE: "true" |
| 51 | |
| 52 | KAFKA_LISTENERS: "INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092,EXTERNAL_SASL_PLAINTEXT://0.0.0.0:9093" |
| 53 | KAFKA_ADVERTISED_LISTENERS: "INTERNAL_SASL_PLAINTEXT://:9092,EXTERNAL_SASL_PLAINTEXT://:9093" |
| 54 | KAFKA_ADVERTISED_HOST_NAME: "kafka" |
| 55 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT" |
| 56 | KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL_SASL_PLAINTEXT" |
| 57 | KAFKA_SASL_ENABLED_MECHANISMS: "PLAIN" |
| 58 | KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "PLAIN" |
| 59 | KAFKA_AUTHORIZER_CLASS_NAME: "org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer" |
| 60 | |
| 61 | aaf_locate_url: https://aaf-locate:8095 |
| 62 | KAFKA_LOG_DIRS: /opt/kafka/data |
| 63 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 64 | KAFKA_DEFAULT_REPLICATION_FACTOR: 1 |
| 65 | KAFKA_NUM_PARTITIONS: 1 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 66 | volumes: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 67 | - /var/run/docker.sock:/var/run/docker.sock |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 68 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 69 | - zookeeper |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 70 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 71 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 72 | |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 73 | # |
| 74 | # Consul / CBS |
| 75 | # |
| 76 | |
| 77 | consul-server: |
| 78 | image: docker.io/consul:1.0.6 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 79 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 80 | - "8500:8500" |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 81 | volumes: |
Filip Krzywka | 83cb247 | 2019-03-20 13:38:17 +0100 | [diff] [blame] | 82 | - ./consul/:/consul/config |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 83 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 84 | - hv-ves-default |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 85 | |
| 86 | config-binding-service: |
kjaniak | 4fea8d1 | 2019-09-12 13:24:17 +0200 | [diff] [blame] | 87 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding:2.5.2 |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 88 | ports: |
| 89 | - "10000:10000" |
| 90 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 91 | - CONSUL_HOST |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 92 | depends_on: |
| 93 | - consul-server |
| 94 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 95 | - hv-ves-default |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 96 | |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 97 | # |
| 98 | # DCAE HV VES Collector |
| 99 | # |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 100 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 101 | hv-ves-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 102 | 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] | 103 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 104 | - "6060:6060" |
| 105 | - "6061:6061/tcp" |
kjaniak | 41b8119 | 2020-01-23 20:38:41 +0100 | [diff] [blame] | 106 | command: ["--configuration-file", "/etc/ves-hv/configuration/secure.json"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 107 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 108 | - JAVA_OPTS |
| 109 | - HOSTNAME=${HV_VES_HOSTNAME} |
| 110 | - CONSUL_HOST |
| 111 | - CONFIG_BINDING_SERVICE |
Joanna Jeremicz | 0e411cb | 2019-11-15 11:03:58 +0100 | [diff] [blame] | 112 | - CONFIG_BINDING_SERVICE_SERVICE_PORT |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 113 | healthcheck: |
| 114 | interval: 10s |
| 115 | timeout: 5s |
| 116 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 117 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 118 | volumes: |
kjaniak | 41b8119 | 2020-01-23 20:38:41 +0100 | [diff] [blame] | 119 | - ./collector/:/etc/ves-hv/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 120 | depends_on: |
| 121 | - config-binding-service |
| 122 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 123 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 124 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 125 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 126 | unencrypted-hv-ves-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 127 | 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] | 128 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 129 | - "7060:6060" |
| 130 | - "7061:6061/tcp" |
kjaniak | 41b8119 | 2020-01-23 20:38:41 +0100 | [diff] [blame] | 131 | command: ["--configuration-file", "/etc/ves-hv/configuration/insecure.json"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 132 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 133 | - JAVA_OPTS |
| 134 | - HOSTNAME=${HV_VES_HOSTNAME} |
| 135 | - CONSUL_HOST |
| 136 | - CONFIG_BINDING_SERVICE |
Joanna Jeremicz | 0e411cb | 2019-11-15 11:03:58 +0100 | [diff] [blame] | 137 | - CONFIG_BINDING_SERVICE_SERVICE_PORT |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 138 | healthcheck: |
| 139 | interval: 10s |
| 140 | timeout: 5s |
| 141 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 142 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 143 | volumes: |
kjaniak | 41b8119 | 2020-01-23 20:38:41 +0100 | [diff] [blame] | 144 | - ./collector/:/etc/ves-hv/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 145 | depends_on: |
| 146 | - config-binding-service |
| 147 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 148 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 149 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 150 | |
| 151 | dcae-app-simulator: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 152 | 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] | 153 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 154 | - "6063:6063/tcp" |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 155 | 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] | 156 | healthcheck: |
| 157 | interval: 10s |
| 158 | timeout: 5s |
| 159 | retries: 2 |
| 160 | test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck" |
| 161 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 162 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 163 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 164 | - hv-ves-default |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 165 | |