| version: '2' |
| services: |
| # |
| # Single-node zookeeper service |
| # |
| zookeeper: |
| image: "wurstmeister/zookeeper:latest" |
| ports: |
| - 2181:2181 |
| environment: |
| SERVICE_2181_NAME: "zookeeper" |
| # |
| # Single-node kafka service |
| # |
| kafka: |
| image: "wurstmeister/kafka:1.1.0" |
| ports: |
| - 9092:9092 |
| environment: |
| # KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092 |
| KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.176.230.190:9092 |
| KAFKA_LISTENERS: PLAINTEXT://:9092 |
| # KAFKA_ADVERTISED_HOST_NAME: 10.100.198.220 |
| KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| SERVICE_9092_NAME: "kafka" |
| volumes: |
| - /var/run/docker.sock:/var/run/docker.sock |