-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (66 loc) · 2.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) Dennis Shevtsov. All rights reserved.
# Licensed under the MIT License.
# See LICENSE in the project root for license information.
version: '3.5'
services:
kafka-sample-zookeeper:
container_name: kafka-sample-zookeeper
image: confluentinc/cp-zookeeper:7.5.3
ports:
- 5001:5001
hostname: kafka-sample-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=5001
- ZOOKEEPER_TICK_TIME=2000
kafka-sample-kafka:
container_name: kafka-sample-kafka
image: confluentinc/cp-kafka:7.5.3
depends_on:
- kafka-sample-zookeeper
ports:
- 5002:29092
hostname: kafka-sample-kafka
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=kafka-sample-zookeeper:5001
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka-sample-kafka:5002
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
kafka-sample-kafka-ui:
container_name: kafka-sample-kafka-ui
image: provectuslabs/kafka-ui
ports:
- 5003:8080
environment:
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka-sample-kafka:5002
- KAFKA_CLUSTERS_0_ZOOKEEPER=kafka-sample-zookeeper:5001
links:
- kafka-sample-kafka
- kafka-sample-zookeeper
kafka-sample-producer:
container_name: kafka-sample-producer
image: kafka-sample-producer
build:
context: .
dockerfile: src/KafkaSample.Producer/Dockerfile
ports:
- 5004:80
environment:
- ASPNETCORE_HTTP_PORTS=80
- KAFKA__BOOTSTRAPSERVERS=kafka-sample-kafka:5002
- PUBLISHING_TOPIC=kafka-sample-topic
kafka-sample-consumer:
container_name: kafka-sample-consumer
image: kafka-sample-consumer
build:
context: .
dockerfile: src/KafkaSample.Consumer/Dockerfile
ports:
- 5005:80
environment:
- ASPNETCORE_HTTP_PORTS=80
- KAFKA__BOOTSTRAPSERVERS=kafka-sample-kafka:5002
- KAFKA__GROUPID=kafka-sample-consumer
- LISTENING_TOPIC=kafka-sample-topic