santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 1 | # 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 | |
| 16 | version: '3' |
| 17 | services: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 18 | smo-influxdb: |
| 19 | container_name: smo-influxdb |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 20 | image: influxdb:1.8.5 |
| 21 | ports: |
| 22 | - 8086:8086 |
| 23 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 24 | - smo-net |
santanude | 5c7d42a | 2022-05-17 17:41:25 +0530 | [diff] [blame] | 25 | environment: |
| 26 | INFLUXDB_DATA_MAX_SERIES_PER_DATABASE: 0 |
| 27 | INFLUXDB_DATA_MAX_VALUES_PER_TAG: 0 |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 28 | smo-grafana: |
| 29 | container_name: smo-grafana |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 30 | image: grafana/grafana:7.5.11 |
| 31 | ports: |
santanude | 48a8415 | 2021-12-09 15:02:27 +0530 | [diff] [blame] | 32 | - 3000:3000 |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 33 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 34 | - smo-net |
santanude | 00f8767 | 2021-11-02 17:55:00 +0530 | [diff] [blame] | 35 | depends_on: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 36 | - smo-influxdb |
| 37 | - smo-influxdb-connector |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 38 | smo-zookeeper: |
| 39 | container_name: smo-zookeeper |
| 40 | image: confluentinc/cp-zookeeper:5.5.6 |
| 41 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 42 | - smo-net |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 43 | 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: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 50 | - smo-net |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 51 | 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 |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 62 | smo-kafdrop: |
| 63 | container_name: smo-kafdrop |
| 64 | image: obsidiandynamics/kafdrop:3.27.0 |
| 65 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 66 | - smo-net |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 67 | depends_on: |
| 68 | - smo-kafka |
| 69 | ports: |
| 70 | - 29000:9000 |
| 71 | environment: |
| 72 | KAFKA_BROKERCONNECT: smo-kafka:29092 |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 73 | smo-dmaap-adapter: |
| 74 | container_name: smo-dmaap-adapter |
santanude | 53e7577 | 2022-07-13 15:00:51 +0530 | [diff] [blame] | 75 | build: ./dmaapadapter |
| 76 | image: smo-dmaap-adapter |
santanude | afc967b | 2021-11-01 18:32:18 +0530 | [diff] [blame] | 77 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 78 | - smo-net |
santanude | afc967b | 2021-11-01 18:32:18 +0530 | [diff] [blame] | 79 | ports: |
| 80 | - 5000:5000 |
| 81 | environment: |
| 82 | kafka_host: "smo-kafka" |
| 83 | kafka_port: "29092" |
| 84 | log_level: "DEBUG" |
santanude | afcbd78 | 2022-02-24 20:39:42 +0530 | [diff] [blame] | 85 | enable_assert: "False" |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 86 | smo-collector: |
| 87 | container_name: smo-collector |
santanude | 53e7577 | 2022-07-13 15:00:51 +0530 | [diff] [blame] | 88 | build: ./collector |
| 89 | image: smo-collector |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 90 | networks: |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 91 | - smo-net |
| 92 | ports: |
| 93 | - 9999:9999 |
| 94 | volumes: |
| 95 | - ~/ves-certificate:/opt/smo/certs |
| 96 | environment: |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 97 | smo_kafka_host: "smo-kafka" |
| 98 | smo_kafka_port: "29092" |
| 99 | smo_kafka_topic: "smo-events" |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 100 | collector_host: "smo-collector" |
| 101 | collector_port: "9999" |
| 102 | collector_user: "user" |
| 103 | collector_pass: "password" |
| 104 | collector_path: "" |
| 105 | loglevel: "ERROR" |
santanude | afcbd78 | 2022-02-24 20:39:42 +0530 | [diff] [blame] | 106 | enable_assert: "False" |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 107 | depends_on: |
| 108 | - smo-kafka |
| 109 | smo-influxdb-connector: |
| 110 | container_name: smo-influxdb-connector |
santanude | 53e7577 | 2022-07-13 15:00:51 +0530 | [diff] [blame] | 111 | build: ./influxdb-connector |
| 112 | image: smo-influxdb-connector |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 113 | 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" |
santanude | afcbd78 | 2022-02-24 20:39:42 +0530 | [diff] [blame] | 123 | enable_assert: "False" |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 124 | depends_on: |
| 125 | - smo-kafka |
| 126 | - smo-influxdb |
santanude | 48a8415 | 2021-12-09 15:02:27 +0530 | [diff] [blame] | 127 | smo-post-config: |
| 128 | container_name: smo-post-config |
santanude | 53e7577 | 2022-07-13 15:00:51 +0530 | [diff] [blame] | 129 | build: ./postconfig |
| 130 | image: smo-post-config |
santanude | 48a8415 | 2021-12-09 15:02:27 +0530 | [diff] [blame] | 131 | environment: |
santanude | 31cb268 | 2021-12-21 20:19:01 +0530 | [diff] [blame] | 132 | 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" |
santanude | 48a8415 | 2021-12-09 15:02:27 +0530 | [diff] [blame] | 137 | depends_on: |
| 138 | - smo-grafana |
| 139 | networks: |
| 140 | - smo-net |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 141 | |
| 142 | networks: |
santanude | ea5bb75 | 2021-12-06 16:27:34 +0530 | [diff] [blame] | 143 | smo-net: |
| 144 | driver: bridge |
| 145 | name: smo-net |