1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-11-27 22:28:31 +02:00

update kafka

This commit is contained in:
kev
2018-07-27 00:37:40 +08:00
parent 9509a7ea07
commit 6621e77691

View File

@@ -3,20 +3,36 @@ zookeeper:
ports: ports:
- "2181:2181" - "2181:2181"
volumes: volumes:
- ./zookeeper/data:/data - ./data/zookeeper/data:/data
- ./zookeeper/datalog:/datalog - ./data/zookeeper/datalog:/datalog
restart: always restart: always
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
ports: ports:
- "9092:9092" - "9092:9092"
hostname: kafka
volumes: volumes:
- ./data/kafka:/kafka - ./data/kafka:/kafka
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- KAFKA_ADVERTISED_HOST_NAME=10.50.254.182 - KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
links: links:
- zookeeper - zookeeper
restart: always restart: always
kafka-manager:
image: vimagick/kafka-manager
ports:
- "9000:9000"
environment:
- ZK_HOSTS=zookeeper:2181
- KAFKA_MANAGER_AUTH_ENABLED=true
- KAFKA_MANAGER_USERNAME=admin
- KAFKA_MANAGER_PASSWORD=admin
links:
- zookeeper
- kafka
restart: always