From cd107b2473669c91451e505253e4e71f1ba38c1e Mon Sep 17 00:00:00 2001 From: Jorge Quilcate Otoya Date: Sun, 17 Mar 2019 20:40:30 +0100 Subject: [PATCH] feat: example multi mode --- examples/multi-mode/docker-compose.yml | 61 ++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 examples/multi-mode/docker-compose.yml diff --git a/examples/multi-mode/docker-compose.yml b/examples/multi-mode/docker-compose.yml new file mode 100644 index 00000000..32ec7f77 --- /dev/null +++ b/examples/multi-mode/docker-compose.yml @@ -0,0 +1,61 @@ +# +# Copyright 2019 jeqo +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under +# the License. +# + +--- +version: '3' +services: + zookeeper: + image: confluentinc/cp-zookeeper:5.1.0 + ports: + - 2181:2181 + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + ZOOKEEPER_TICK_TIME: 2000 + kafka: + image: confluentinc/cp-kafka:5.1.0 + ports: + - 9092:9092 + - 29092:29092 + environment: + KAFKA_BROKER_ID: 1 + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0 + depends_on: + - zookeeper + zipkin-ingestion: + image: jeqo/zipkin-kafka:0.3.1-SNAPSHOT + ports: + - 9411:9411 + environment: + KAFKA_STORE_BOOTSTRAP_SERVERS: kafka:9092 + KAFKA_STORE_COMPRESSION_TYPE: SNAPPY + KAFKA_STORE_SPAN_CONSUMER_ENABLED: 'true' + KAFKA_STORE_SPAN_STORE_ENABLED: 'false' + zipkin-store: + image: jeqo/zipkin-kafka:0.3.1-SNAPSHOT + ports: + - 9412:9411 + environment: + KAFKA_STORE_BOOTSTRAP_SERVERS: kafka:9092 + KAFKA_STORE_COMPRESSION_TYPE: SNAPPY + KAFKA_STORE_SPAN_CONSUMER_ENABLED: 'false' + KAFKA_STORE_SPAN_STORE_ENABLED: 'true' + KAFKA_STORE_DIRECTORY: /zipkin/data + volumes: + - zipkin:/zipkin/data +volumes: + zipkin: \ No newline at end of file