blob: 1d34e9f8634392b99e06e60f311502846c017f22 [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:
33 image: wurstmeister/zookeeper
34 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:
40 image: wurstmeister/kafka
41 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010042 - "9092:9092"
Gary Wu9abb61c2018-09-27 10:38:50 -070043 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 Krzywka60f92952019-03-11 14:13:42 +010049 - /var/run/docker.sock:/var/run/docker.sock
Gary Wu9abb61c2018-09-27 10:38:50 -070050 depends_on:
Filip Krzywka60f92952019-03-11 14:13:42 +010051 - zookeeper
Gary Wu9abb61c2018-09-27 10:38:50 -070052 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010053 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -070054
Filip Krzywka60f92952019-03-11 14:13:42 +010055 #
56 # Consul / CBS
57 #
58
59 consul-server:
60 image: docker.io/consul:1.0.6
Gary Wu9abb61c2018-09-27 10:38:50 -070061 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010062 - "8500:8500"
Filip Krzywka60f92952019-03-11 14:13:42 +010063 volumes:
Filip Krzywka83cb2472019-03-20 13:38:17 +010064 - ./consul/:/consul/config
Gary Wu9abb61c2018-09-27 10:38:50 -070065 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010066 - hv-ves-default
Filip Krzywka60f92952019-03-11 14:13:42 +010067
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 Krzywkad2da2cc2019-03-20 10:42:19 +010073 - CONSUL_HOST
Filip Krzywka60f92952019-03-11 14:13:42 +010074 depends_on:
75 - consul-server
76 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +010077 - hv-ves-default
Filip Krzywkad2da2cc2019-03-20 10:42:19 +010078
Filip Krzywka60f92952019-03-11 14:13:42 +010079 #
80 # DCAE HV VES Collector
81 #
Gary Wu9abb61c2018-09-27 10:38:50 -070082
Jakub Dudyczf344afa2019-03-25 16:04:58 +010083 hv-ves-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +010084 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -070085 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010086 - "6060:6060"
87 - "6061:6061/tcp"
Filip Krzywkad2da2cc2019-03-20 10:42:19 +010088 command: ["--configuration-file", "/etc/hv-ves/configuration/secure.json"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +010089 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +010090 - JAVA_OPTS
91 - HOSTNAME=${HV_VES_HOSTNAME}
92 - CONSUL_HOST
93 - CONFIG_BINDING_SERVICE
Gary Wu9abb61c2018-09-27 10:38:50 -070094 healthcheck:
95 interval: 10s
96 timeout: 5s
97 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020098 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -070099 volumes:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100100 - ./collector/:/etc/hv-ves/
Filip Krzywka60f92952019-03-11 14:13:42 +0100101 depends_on:
102 - config-binding-service
103 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700104 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100105 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700106
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100107 unencrypted-hv-ves-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100108 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700109 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100110 - "7060:6060"
111 - "7061:6061/tcp"
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100112 command: ["--configuration-file", "/etc/hv-ves/configuration/insecure.json"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100113 environment:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100114 - JAVA_OPTS
115 - HOSTNAME=${HV_VES_HOSTNAME}
116 - CONSUL_HOST
117 - CONFIG_BINDING_SERVICE
Gary Wu9abb61c2018-09-27 10:38:50 -0700118 healthcheck:
119 interval: 10s
120 timeout: 5s
121 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200122 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700123 volumes:
Filip Krzywkad2da2cc2019-03-20 10:42:19 +0100124 - ./collector/:/etc/hv-ves/
Filip Krzywka60f92952019-03-11 14:13:42 +0100125 depends_on:
126 - config-binding-service
127 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700128 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100129 - hv-ves-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700130
131 dcae-app-simulator:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100132 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 -0700133 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100134 - "6063:6063/tcp"
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200135 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"]
Gary Wu9abb61c2018-09-27 10:38:50 -0700136 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 Krzywka60f92952019-03-11 14:13:42 +0100142 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700143 networks:
Jakub Dudyczf344afa2019-03-25 16:04:58 +0100144 - hv-ves-default
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100145