blob: 6a03f2cb87d2c1245e925b685f5fce6f3c12f2d7 [file] [log] [blame]
santanudec82167d2021-10-21 17:42:34 +05301# Copyright 2021 Xoriant Corporation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16version: '3'
17services:
18 ves-influxdb:
19 container_name: ves-influxdb
20 image: influxdb:1.8.5
21 ports:
22 - 8086:8086
23 networks:
24 - ves-net
25 ves-grafana:
26 container_name: ves-grafana
27 image: grafana/grafana:7.5.11
28 ports:
29 - 8880:3000
30 networks:
31 - ves-net
32 ves-zookeeper:
33 container_name: ves-zookeeper
34 image: confluentinc/cp-zookeeper:5.5.6
35 networks:
36 - ves-net
37 environment:
38 ZOOKEEPER_CLIENT_PORT: 2181
39 ZOOKEEPER_TICK_TIME: 2000
40 ves-kafka:
41 container_name: ves-kafka
42 image: confluentinc/cp-kafka:5.5.6
43 networks:
44 - ves-net
45 depends_on:
46 - ves-zookeeper
47 ports:
48 - 9092:9092
49 environment:
50 KAFKA_BROKER_ID: 1
51 KAFKA_ZOOKEEPER_CONNECT: ves-zookeeper:2181
52 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://ves-kafka:9092,PLAINTEXT_HOST://localhost:19092
53 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
54 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
55 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
56 smo-zookeeper:
57 container_name: smo-zookeeper
58 image: confluentinc/cp-zookeeper:5.5.6
59 networks:
60 - ves-net
61 environment:
62 ZOOKEEPER_CLIENT_PORT: 22181
63 ZOOKEEPER_TICK_TIME: 2000
64 smo-kafka:
65 container_name: smo-kafka
66 image: confluentinc/cp-kafka:5.5.6
67 networks:
68 - ves-net
69 depends_on:
70 - smo-zookeeper
71 ports:
72 - 29092:29092
73 environment:
74 KAFKA_BROKER_ID: 2
75 KAFKA_ZOOKEEPER_CONNECT: smo-zookeeper:22181
76 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://smo-kafka:29092,PLAINTEXT_HOST://localhost:39092
77 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
78 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
79 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
80 ves-kafdrop:
81 container_name: ves-kafdrop
82 image: obsidiandynamics/kafdrop:3.27.0
83 networks:
84 - ves-net
85 depends_on:
86 - ves-kafka
87 ports:
88 - 9000:9000
89 environment:
90 KAFKA_BROKERCONNECT: ves-kafka:9092
91 smo-kafdrop:
92 container_name: smo-kafdrop
93 image: obsidiandynamics/kafdrop:3.27.0
94 networks:
95 - ves-net
96 depends_on:
97 - smo-kafka
98 ports:
99 - 29000:9000
100 environment:
101 KAFKA_BROKERCONNECT: smo-kafka:29092
102 ves-collector:
103 container_name: ves-collector
104 build: ./collector
105 image: ves-collector
106 networks:
107 - ves-net
108 ports:
109 - 9999:9999
110 environment:
111 ves_influxdb_host: "ves-influxdb"
112 ves_influxdb_port: "8086"
113 ves_grafana_host: "ves-grafana"
114 ves_grafana_port: "3000"
115 data_storage: "influxdb|elasticsearch"
116 elasticsearch_domain: "ves-elasticsearch"
117 kafka_host_2: "smo-kafka"
118 kafka_port_2: "29092"
119 kafka_topic: "smo-events"
120 ves_host: "ves-collector"
121 ves_port: "9999"
122 ves_grafana_auth: "admin:admin"
123 ves_user: "user"
124 ves_pass: "password"
125 ves_path: ""
126 ves_topic: "events"
127 ves_loglevel: "ERROR"
128 depends_on:
129 - ves-kafka
130 - smo-kafka
131 - ves-influxdb
132 - ves-grafana
133 ves-agent:
134 container_name: ves-agent
135 build: ./agent
136 image: ves-agent
137 networks:
138 - ves-net
139 restart: always
140 environment:
141 ves_kafka_host: "ves-kafka"
142 ves_kafka_hostname: "ves-kafka"
143 ves_host: "ves-collector"
144 ves_port: "9999"
145 ves_path: ""
146 ves_topic: "events"
147 ves_https: "False"
148 ves_user: "user"
149 ves_pass: "password"
150 ves_interval: "10"
151 ves_kafka_port: "9092"
152 ves_mode: "./yaml/host"
153 ves_version: "5"
154 ves_loglevel: "ERROR"
155 depends_on:
156 - ves-kafka
157 - ves-collector
santanudeafc967b2021-11-01 18:32:18 +0530158 ves-dmaap-adapter:
159 container_name: ves-dmaap-adapter
160 build: ./dmaapadapter
161 image: ves-dmaap-adapter
162 networks:
163 - ves-net
164 ports:
165 - 5000:5000
166 environment:
167 kafka_host: "smo-kafka"
168 kafka_port: "29092"
169 log_level: "DEBUG"
170 depends_on:
171 - smo-kafka
santanudec82167d2021-10-21 17:42:34 +0530172 ves-elasticsearch:
173 image: docker.elastic.co/elasticsearch/elasticsearch:7.11.1
174 container_name: ves-elasticsearch
175 restart: always
176 environment:
177 discovery.type: "single-node"
178 ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
179 ports:
180 - 9200:9200
181 - 9300:9300
182 networks:
183 - ves-net
184
185networks:
186 ves-net:
187 driver: bridge