blob: 67b46b0fddccfed43bf5f33bbefbbee2a067154b [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:
santanudeea5bb752021-12-06 16:27:34 +053018 smo-influxdb:
19 container_name: smo-influxdb
santanudec82167d2021-10-21 17:42:34 +053020 image: influxdb:1.8.5
21 ports:
22 - 8086:8086
23 networks:
santanudeea5bb752021-12-06 16:27:34 +053024 - smo-net
santanude5c7d42a2022-05-17 17:41:25 +053025 environment:
26 INFLUXDB_DATA_MAX_SERIES_PER_DATABASE: 0
27 INFLUXDB_DATA_MAX_VALUES_PER_TAG: 0
santanudeea5bb752021-12-06 16:27:34 +053028 smo-grafana:
29 container_name: smo-grafana
santanudec82167d2021-10-21 17:42:34 +053030 image: grafana/grafana:7.5.11
31 ports:
santanude48a84152021-12-09 15:02:27 +053032 - 3000:3000
santanudec82167d2021-10-21 17:42:34 +053033 networks:
santanudeea5bb752021-12-06 16:27:34 +053034 - smo-net
santanude00f87672021-11-02 17:55:00 +053035 depends_on:
santanudeea5bb752021-12-06 16:27:34 +053036 - smo-influxdb
37 - smo-influxdb-connector
santanudec82167d2021-10-21 17:42:34 +053038 smo-zookeeper:
39 container_name: smo-zookeeper
40 image: confluentinc/cp-zookeeper:5.5.6
41 networks:
santanudeea5bb752021-12-06 16:27:34 +053042 - smo-net
santanudec82167d2021-10-21 17:42:34 +053043 environment:
44 ZOOKEEPER_CLIENT_PORT: 22181
45 ZOOKEEPER_TICK_TIME: 2000
46 smo-kafka:
47 container_name: smo-kafka
48 image: confluentinc/cp-kafka:5.5.6
49 networks:
santanudeea5bb752021-12-06 16:27:34 +053050 - smo-net
santanudec82167d2021-10-21 17:42:34 +053051 depends_on:
52 - smo-zookeeper
53 ports:
54 - 29092:29092
55 environment:
56 KAFKA_BROKER_ID: 2
57 KAFKA_ZOOKEEPER_CONNECT: smo-zookeeper:22181
58 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://smo-kafka:29092,PLAINTEXT_HOST://localhost:39092
59 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
60 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
61 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
santanudec82167d2021-10-21 17:42:34 +053062 smo-kafdrop:
63 container_name: smo-kafdrop
64 image: obsidiandynamics/kafdrop:3.27.0
65 networks:
santanudeea5bb752021-12-06 16:27:34 +053066 - smo-net
santanudec82167d2021-10-21 17:42:34 +053067 depends_on:
68 - smo-kafka
69 ports:
70 - 29000:9000
71 environment:
72 KAFKA_BROKERCONNECT: smo-kafka:29092
santanudeea5bb752021-12-06 16:27:34 +053073 smo-dmaap-adapter:
74 container_name: smo-dmaap-adapter
santanude53e75772022-07-13 15:00:51 +053075 build: ./dmaapadapter
76 image: smo-dmaap-adapter
santanudeafc967b2021-11-01 18:32:18 +053077 networks:
santanudeea5bb752021-12-06 16:27:34 +053078 - smo-net
santanudeafc967b2021-11-01 18:32:18 +053079 ports:
80 - 5000:5000
81 environment:
82 kafka_host: "smo-kafka"
83 kafka_port: "29092"
84 log_level: "DEBUG"
santanudeafcbd782022-02-24 20:39:42 +053085 enable_assert: "False"
santanude31cb2682021-12-21 20:19:01 +053086 smo-collector:
87 container_name: smo-collector
santanude53e75772022-07-13 15:00:51 +053088 build: ./collector
89 image: smo-collector
santanude31cb2682021-12-21 20:19:01 +053090 networks:
santanude31cb2682021-12-21 20:19:01 +053091 - smo-net
92 ports:
93 - 9999:9999
94 volumes:
95 - ~/ves-certificate:/opt/smo/certs
96 environment:
santanude31cb2682021-12-21 20:19:01 +053097 smo_kafka_host: "smo-kafka"
98 smo_kafka_port: "29092"
99 smo_kafka_topic: "smo-events"
santanude31cb2682021-12-21 20:19:01 +0530100 collector_host: "smo-collector"
101 collector_port: "9999"
102 collector_user: "user"
103 collector_pass: "password"
104 collector_path: ""
105 loglevel: "ERROR"
santanudeafcbd782022-02-24 20:39:42 +0530106 enable_assert: "False"
santanude31cb2682021-12-21 20:19:01 +0530107 depends_on:
108 - smo-kafka
109 smo-influxdb-connector:
110 container_name: smo-influxdb-connector
santanude53e75772022-07-13 15:00:51 +0530111 build: ./influxdb-connector
112 image: smo-influxdb-connector
santanude31cb2682021-12-21 20:19:01 +0530113 networks:
114 - smo-net
115 ports:
116 - 9990:9990
117 environment:
118 smo_influxdb_host: "smo-influxdb"
119 smo_influxdb_port: "8086"
120 smo_kafka_host: "smo-kafka"
121 smo_kafka_port: "29092"
122 loglevel: "ERROR"
santanudeafcbd782022-02-24 20:39:42 +0530123 enable_assert: "False"
santanude31cb2682021-12-21 20:19:01 +0530124 depends_on:
125 - smo-kafka
126 - smo-influxdb
santanude48a84152021-12-09 15:02:27 +0530127 smo-post-config:
128 container_name: smo-post-config
santanude53e75772022-07-13 15:00:51 +0530129 build: ./postconfig
130 image: smo-post-config
santanude48a84152021-12-09 15:02:27 +0530131 environment:
santanude31cb2682021-12-21 20:19:01 +0530132 smo_influxdb_host: "smo-influxdb"
133 smo_influxdb_port: "8086"
134 smo_grafana_host: "smo-grafana"
135 smo_grafana_port: "3000"
136 smo_grafana_auth: "admin:admin"
santanude48a84152021-12-09 15:02:27 +0530137 depends_on:
138 - smo-grafana
139 networks:
140 - smo-net
santanudec82167d2021-10-21 17:42:34 +0530141
142networks:
santanudeea5bb752021-12-06 16:27:34 +0530143 smo-net:
144 driver: bridge
145 name: smo-net