1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:29 +02:00
dockerfiles/kafka/docker-compose.yml

39 lines
801 B
YAML
Raw Normal View History

2018-07-22 14:57:36 +02:00
zookeeper:
2019-12-24 06:45:13 +02:00
image: zookeeper:3.5.6
2018-07-22 14:57:36 +02:00
ports:
- "2181:2181"
volumes:
2018-07-26 18:37:40 +02:00
- ./data/zookeeper/data:/data
- ./data/zookeeper/datalog:/datalog
2018-07-22 14:57:36 +02:00
restart: always
kafka:
2019-12-24 06:45:13 +02:00
image: wurstmeister/kafka:2.12-2.4.0
2018-07-22 14:57:36 +02:00
ports:
- "9092:9092"
2018-07-26 18:37:40 +02:00
hostname: kafka
2018-07-22 14:57:36 +02:00
volumes:
2018-07-26 10:55:19 +02:00
- ./data/kafka:/kafka
2018-07-22 14:57:36 +02:00
- /var/run/docker.sock:/var/run/docker.sock
environment:
2018-07-26 18:37:40 +02:00
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ADVERTISED_PORT=9092
2018-07-22 14:57:36 +02:00
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
2018-07-26 10:55:19 +02:00
links:
- zookeeper
2018-07-22 14:57:36 +02:00
restart: always
2018-07-26 18:37:40 +02:00
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