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

23 lines
443 B
YAML
Raw Normal View History

2018-07-22 14:57:36 +02:00
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