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" |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 106 | command: ["--configuration-file", "/etc/hv-ves/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 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 112 | healthcheck: |
| 113 | interval: 10s |
| 114 | timeout: 5s |
| 115 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 116 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 117 | volumes: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 118 | - ./collector/:/etc/hv-ves/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 119 | depends_on: |
| 120 | - config-binding-service |
| 121 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 122 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 123 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 124 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 125 | unencrypted-hv-ves-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 126 | 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] | 127 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 128 | - "7060:6060" |
| 129 | - "7061:6061/tcp" |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 130 | command: ["--configuration-file", "/etc/hv-ves/configuration/insecure.json"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 131 | environment: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 132 | - JAVA_OPTS |
| 133 | - HOSTNAME=${HV_VES_HOSTNAME} |
| 134 | - CONSUL_HOST |
| 135 | - CONFIG_BINDING_SERVICE |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 136 | healthcheck: |
| 137 | interval: 10s |
| 138 | timeout: 5s |
| 139 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 140 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 141 | volumes: |
Filip Krzywka | d2da2cc | 2019-03-20 10:42:19 +0100 | [diff] [blame] | 142 | - ./collector/:/etc/hv-ves/ |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 143 | depends_on: |
| 144 | - config-binding-service |
| 145 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 146 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 147 | - hv-ves-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 148 | |
| 149 | dcae-app-simulator: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 150 | 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] | 151 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 152 | - "6063:6063/tcp" |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 153 | 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] | 154 | healthcheck: |
| 155 | interval: 10s |
| 156 | timeout: 5s |
| 157 | retries: 2 |
| 158 | test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck" |
| 159 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 160 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 161 | networks: |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 162 | - hv-ves-default |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 163 | |