-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
27 lines (27 loc) · 959 Bytes
/
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
version: '3'
services:
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=EXTERNAL://:9092,INTERNAL://:9093,INTERBROKER://:9094
- KAFKA_ADVERTISED_LISTENERS=EXTERNAL://localhost:9092,INTERNAL://:9093,INTERBROKER://:9094
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=EXTERNAL:SSL,INTERNAL:PLAINTEXT,INTERBROKER:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERBROKER
- KAFKA_SSL_KEYSTORE_LOCATION=/tmp/kafka-ssl-demo/server.ks.p12
- KAFKA_SSL_KEYSTORE_PASSWORD=server-ks-password
- KAFKA_SSL_KEY_PASSWORD=server-ks-password
- KAFKA_SSL_KEYSTORE_TYPE=PKCS12
volumes:
- /tmp/kafka-ssl-demo:/tmp/kafka-ssl-demo
depends_on:
- zookeeper
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
environment:
- KAFKA_ADVERTISED_HOST_NAME=zookeeper