Skip to content

Commit

Permalink
feat: example multi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Mar 17, 2019
1 parent 3ac7d1d commit cd107b2
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions examples/multi-mode/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit cd107b2

Please sign in to comment.