summaryrefslogtreecommitdiffstats
path: root/fluent-bit/examples/kafka_filter/docker-compose.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:20:02 +0000
commit58daab21cd043e1dc37024a7f99b396788372918 (patch)
tree96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /fluent-bit/examples/kafka_filter/docker-compose.yml
parentReleasing debian version 1.43.2-1. (diff)
downloadnetdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz
netdata-58daab21cd043e1dc37024a7f99b396788372918.zip
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/examples/kafka_filter/docker-compose.yml')
-rw-r--r--fluent-bit/examples/kafka_filter/docker-compose.yml68
1 files changed, 68 insertions, 0 deletions
diff --git a/fluent-bit/examples/kafka_filter/docker-compose.yml b/fluent-bit/examples/kafka_filter/docker-compose.yml
new file mode 100644
index 000000000..dc758c9ec
--- /dev/null
+++ b/fluent-bit/examples/kafka_filter/docker-compose.yml
@@ -0,0 +1,68 @@
+version: '3.4'
+
+x-service-common-fields: &service-common-fields
+ volumes:
+ - ./scripts:/scripts
+ env_file:
+ - ./.env
+
+
+services:
+ fluent-bit:
+ <<: *service-common-fields
+ build:
+ context: ../..
+ target: runner
+ dockerfile: examples/kafka_filter/Dockerfile
+ command: /scripts/flb-start.sh
+ depends_on:
+ - kafka-consumer
+
+
+ kafka-create-topics:
+ <<: *service-common-fields
+ image: confluentinc/cp-server:7.0.1
+ command: /scripts/create-topics.sh
+ depends_on:
+ - kafka-broker
+
+
+ kafka-producer:
+ <<: *service-common-fields
+ image: confluentinc/cp-server:7.0.1
+ command: /scripts/kafka-produce.sh
+ depends_on:
+ - fluent-bit
+
+
+ kafka-consumer:
+ <<: *service-common-fields
+ image: confluentinc/cp-server:7.0.1
+ command: /scripts/kafka-consume.sh
+ depends_on:
+ - kafka-create-topics
+
+
+ kafka-broker:
+ image: confluentinc/cp-server:7.0.1
+ hostname: broker
+ container_name: kafka-broker
+ depends_on:
+ - zookeeper
+ environment:
+ KAFKA_BROKER_ID: 1
+ KAFKA_ZOOKEEPER_CONNECT: "${ZOOKEEPER_HOST}:${ZOOKEEPER_PORT}"
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "PLAINTEXT:PLAINTEXT"
+ KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://${KAFKA_HOST}:${KAFKA_PORT}"
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+ KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
+ KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
+
+
+ zookeeper:
+ image: confluentinc/cp-zookeeper:7.0.1
+ hostname: zookeeper
+ container_name: zookeeper
+ environment:
+ ZOOKEEPER_CLIENT_PORT: "${ZOOKEEPER_PORT}"
+ ZOOKEEPER_TICK_TIME: 2000