Skip to content

Instantly share code, notes, and snippets.

@chenzhihao
Created November 7, 2018 06:36
Show Gist options
  • Select an option

  • Save chenzhihao/1058eddccd20e4af2403d5ec243cb365 to your computer and use it in GitHub Desktop.

Select an option

Save chenzhihao/1058eddccd20e4af2403d5ec243cb365 to your computer and use it in GitHub Desktop.

Revisions

  1. chenzhihao renamed this gist Nov 7, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. chenzhihao created this gist Nov 7, 2018.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    version: '3'
    services:
    zookeeper:
    image: wurstmeister/zookeeper
    ports:
    - "2181:2181"
    kafka:
    image: wurstmeister/kafka:1.0.1
    ports:
    - 9092:9092
    environment:
    KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
    KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock