This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
71 lines (66 loc) · 1.88 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
69
70
71
version: '3.4'
services:
listener:
container_name: listener
image: ${DOCKER_REGISTRY-}listener
depends_on:
- rest-proxy
build:
context: .
dockerfile: KafkaListener/Dockerfile
ports:
- "80"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:80
ConsumerConfig__BootstrapServers: kafka:9092
ConsumerConfig__GroupId: wsl-consumer
ListenerConfig__Host: http://172.17.0.1:5002
ListenerConfig__Route: /hello
ListenerConfig__Topic: hello-topic
zookeeper:
container_name: zookeeper
image: confluentinc/cp-zookeeper:6.0.2
ports:
- "21811:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
container_name: kafka
image: confluentinc/cp-kafka:6.0.2
depends_on:
- zookeeper
ports:
- "29092:29092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,EXTERNAL://localhost:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
schema-registry:
container_name: schema-registry
image: confluentinc/cp-schema-registry:6.0.2
depends_on:
- zookeeper
- kafka
ports:
- "8083:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
rest-proxy:
container_name: rest-proxy
image: confluentinc/cp-kafka-rest:6.0.2
depends_on:
- zookeeper
- kafka
- schema-registry
ports:
- 8082:8082
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_REST_LISTENERS: http://rest-proxy:8082
KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081