blob: 4b184d38b1169db97a406b2acb7cd6a3cac3e774 [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"
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100106 command: ["--configuration-file", "/etc/hv-ves/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
Gary Wu9abb61c2018-09-27 10:38:50 -0700112 healthcheck:
113 interval: 10s
114 timeout: 5s
115 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200116 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700117 volumes:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100118 - ./collector/:/etc/hv-ves/
Filip Krzywka60f92952019-03-11 14:13:42 +0100119 depends_on:
120 - config-binding-service
121 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700122 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100123 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700124
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100125 unencrypted-hv-ves-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100126 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700127 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100128 - "7060:6060"
129 - "7061:6061/tcp"
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100130 command: ["--configuration-file", "/etc/hv-ves/configuration/insecure.json"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100131 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100132 - JAVA_OPTS
133 - HOSTNAME=${HV_VES_HOSTNAME}
134 - CONSUL_HOST
135 - CONFIG_BINDING_SERVICE
Gary Wu9abb61c2018-09-27 10:38:50 -0700136 healthcheck:
137 interval: 10s
138 timeout: 5s
139 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200140 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700141 volumes:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100142 - ./collector/:/etc/hv-ves/
Filip Krzywka60f92952019-03-11 14:13:42 +0100143 depends_on:
144 - config-binding-service
145 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700146 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100147 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700148
149 dcae-app-simulator:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100150 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 -0700151 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100152 - "6063:6063/tcp"
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200153 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"]
Gary Wu9abb61c2018-09-27 10:38:50 -0700154 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 Krzywka60f92952019-03-11 14:13:42 +0100160 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700161 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100162 - hv-ves-default
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100163