mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 14:31:51 +01:00
add kafka
This commit is contained in:
2
kafka/README.md
Normal file
2
kafka/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
kafka
|
||||
=====
|
||||
22
kafka/docker-compose.yml
Normal file
22
kafka/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
zookeeper:
|
||||
image: zookeeper
|
||||
ports:
|
||||
- "2181:2181"
|
||||
volumes:
|
||||
- ./zookeeper/data:/data
|
||||
- ./zookeeper/datalog:/datalog
|
||||
restart: always
|
||||
|
||||
kafka:
|
||||
image: wurstmeister/kafka
|
||||
ports:
|
||||
- "9092:9092"
|
||||
links:
|
||||
- zookeeper
|
||||
volumes:
|
||||
- ./kafka:/kafka
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- KAFKA_ADVERTISED_HOST_NAME=10.50.254.182
|
||||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
|
||||
restart: always
|
||||
Reference in New Issue
Block a user