khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
| 4 | # Single-node zookeeper service |
| 5 | # |
| 6 | zookeeper: |
| 7 | image: "wurstmeister/zookeeper:latest" |
| 8 | ports: |
| 9 | - 2181:2181 |
| 10 | environment: |
| 11 | SERVICE_2181_NAME: "zookeeper" |
| 12 | # |
| 13 | # Single-node kafka service |
| 14 | # |
| 15 | kafka: |
| 16 | image: "wurstmeister/kafka:latest" |
| 17 | ports: |
| 18 | - 9092:9092 |
| 19 | environment: |
| 20 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092 |
| 21 | KAFKA_LISTENERS: PLAINTEXT://:9092 |
| 22 | # KAFKA_ADVERTISED_HOST_NAME: 10.100.198.220 |
| 23 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 24 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 25 | SERVICE_9092_NAME: "kafka" |
| 26 | volumes: |
| 27 | - /var/run/docker.sock:/var/run/docker.sock |