-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.broker.yml
37 lines (36 loc) · 1.3 KB
/
docker-compose.broker.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
version: '3'
services:
# zookeeper:
# image: wurstmeister/zookeeper:3.4.6
# ports:
# - "2181:2181"
# kafka:
# image: wurstmeister/kafka:latest
# ports:
# - "9092:9092"
# environment:
# KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
# KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
# KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
# KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 # replication factor를 1로 설정
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
zookeeper:
image: confluentinc/cp-zookeeper
ports:
- "2181:2181"
fatal69100_kafka:
image: confluentinc/cp-kafka
ports:
- "9092:9092"
environment:
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 # replication factor를 1로 설정
volumes:
- /var/run/docker.sock:/var/run/docker.sock