blob: d89e82bb69b751b68c1158def0402a5da7e1803b [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001version: "3"
Filip Krzywka66e2ad62019-03-20 14:03:02 +01002# ============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 Wu9abb61c2018-09-27 10:38:50 -070020
21networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010022 hv-ves-default:
Gary Wu9abb61c2018-09-27 10:38:50 -070023 external:
24 name: $CONTAINERS_NETWORK
25
26services:
Filip Krzywka60f92952019-03-11 14:13:42 +010027
28 #
29 # DMaaP Message Router
30 #
31
Gary Wu9abb61c2018-09-27 10:38:50 -070032 zookeeper:
kjaniak605be8e2019-04-23 16:11:37 +020033 image: ${ZOOKEEPER_IMAGE_FULL_NAME}
Gary Wu9abb61c2018-09-27 10:38:50 -070034 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010035 - "2181:2181"
Gary Wu9abb61c2018-09-27 10:38:50 -070036 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010037 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -070038
39 kafka:
kjaniak605be8e2019-04-23 16:11:37 +020040 image: ${KAFKA_IMAGE_FULL_NAME}
Gary Wu9abb61c2018-09-27 10:38:50 -070041 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010042 - "9092:9092"
kjaniak605be8e2019-04-23 16:11:37 +020043 - "9093:9093"
Gary Wu9abb61c2018-09-27 10:38:50 -070044 environment:
kjaniak605be8e2019-04-23 16:11:37 +020045 HOST_IP: 127.0.0.1
46 KAFKA_BROKER_ID: 0
47 ENDPOINT_PORT: 30490
Gary Wu9abb61c2018-09-27 10:38:50 -070048 KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
kjaniak605be8e2019-04-23 16:11:37 +020049 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 Wu9abb61c2018-09-27 10:38:50 -070066 volumes:
Filip Krzywka60f92952019-03-11 14:13:42 +010067 - /var/run/docker.sock:/var/run/docker.sock
Gary Wu9abb61c2018-09-27 10:38:50 -070068 depends_on:
Filip Krzywka60f92952019-03-11 14:13:42 +010069 - zookeeper
Gary Wu9abb61c2018-09-27 10:38:50 -070070 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010071 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -070072
Filip Krzywka60f92952019-03-11 14:13:42 +010073 #
74 # Consul / CBS
75 #
76
77 consul-server:
78 image: docker.io/consul:1.0.6
Gary Wu9abb61c2018-09-27 10:38:50 -070079 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010080 - "8500:8500"
Filip Krzywka60f92952019-03-11 14:13:42 +010081 volumes:
Filip Krzywka83cb2472019-03-20 13:38:17 +010082 - ./consul/:/consul/config
Gary Wu9abb61c2018-09-27 10:38:50 -070083 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010084 - hv-ves-default
Filip Krzywka60f92952019-03-11 14:13:42 +010085
86 config-binding-service:
kjaniak4fea8d12019-09-12 13:24:17 +020087 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding:2.5.2
Filip Krzywka60f92952019-03-11 14:13:42 +010088 ports:
89 - "10000:10000"
90 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +010091 - CONSUL_HOST
Filip Krzywka60f92952019-03-11 14:13:42 +010092 depends_on:
93 - consul-server
94 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010095 - hv-ves-default
Filip Krzywkad2da2cc2019-03-20 10:42:19 +010096
Filip Krzywka60f92952019-03-11 14:13:42 +010097 #
98 # DCAE HV VES Collector
99 #
Gary Wu9abb61c2018-09-27 10:38:50 -0700100
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100101 hv-ves-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100102 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700103 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100104 - "6060:6060"
105 - "6061:6061/tcp"
kjaniak41b81192020-01-23 20:38:41 +0100106 command: ["--configuration-file", "/etc/ves-hv/configuration/secure.json"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100107 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100108 - JAVA_OPTS
109 - HOSTNAME=${HV_VES_HOSTNAME}
110 - CONSUL_HOST
111 - CONFIG_BINDING_SERVICE
Joanna Jeremicz0e411cb2019-11-15 11:03:58 +0100112 - CONFIG_BINDING_SERVICE_SERVICE_PORT
Gary Wu9abb61c2018-09-27 10:38:50 -0700113 healthcheck:
114 interval: 10s
115 timeout: 5s
116 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200117 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700118 volumes:
kjaniak41b81192020-01-23 20:38:41 +0100119 - ./collector/:/etc/ves-hv/
Filip Krzywka60f92952019-03-11 14:13:42 +0100120 depends_on:
121 - config-binding-service
122 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700123 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100124 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700125
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100126 unencrypted-hv-ves-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100127 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700128 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100129 - "7060:6060"
130 - "7061:6061/tcp"
kjaniak41b81192020-01-23 20:38:41 +0100131 command: ["--configuration-file", "/etc/ves-hv/configuration/insecure.json"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100132 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100133 - JAVA_OPTS
134 - HOSTNAME=${HV_VES_HOSTNAME}
135 - CONSUL_HOST
136 - CONFIG_BINDING_SERVICE
Joanna Jeremicz0e411cb2019-11-15 11:03:58 +0100137 - CONFIG_BINDING_SERVICE_SERVICE_PORT
Gary Wu9abb61c2018-09-27 10:38:50 -0700138 healthcheck:
139 interval: 10s
140 timeout: 5s
141 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200142 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700143 volumes:
kjaniak41b81192020-01-23 20:38:41 +0100144 - ./collector/:/etc/ves-hv/
Filip Krzywka60f92952019-03-11 14:13:42 +0100145 depends_on:
146 - config-binding-service
147 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700148 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100149 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700150
151 dcae-app-simulator:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100152 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${DCAE_APP_SIMULATOR_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700153 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100154 - "6063:6063/tcp"
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200155 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"]
Gary Wu9abb61c2018-09-27 10:38:50 -0700156 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 Krzywka60f92952019-03-11 14:13:42 +0100162 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700163 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100164 - hv-ves-default
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100165