2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-27 23:46:33 +01:00

add kafka-rest

This commit is contained in:
kev
2019-05-01 08:54:06 +08:00
parent 6f283b7a46
commit fd860a3285
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
kafka-rest:
image: confluentinc/cp-kafka-rest
ports:
- "8082:8082"
environment:
- KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
- KAFKA_REST_BOOTSTRAP_SERVERS=kafka1:9092,kafka2:9092,kafka3:9092
extra_hosts:
- zookeeper1:10.0.0.21
- zookeeper2:10.0.0.22
- zookeeper3:10.0.0.23
- kafka1:10.0.0.21
- kafka2:10.0.0.22
- kafka3:10.0.0.23
restart: unless-stopped