SHARE
TWEET

fedorm

a guest Jan 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. version: '3'
  3.  
  4. services:
  5.   kafka0:
  6.     environment:
  7.      - KAFKA_BROKER_ID=1
  8.       - KAFKA_ADVERTISED_HOST_NAME=172.31.12.208
  9.       - KAFKA_ADVERTISED_PORT=9095
  10.       - KAFKA_ZOOKEEPER_CONNECT=zoo1:2184,zoo2:2182,zoo3:2183
  11.       - KAFKA_CREATE_TOPICS=pos_issue_coupon:3:3,pos_use_coupon:3:3,generate_coupons:3:3,__consumer_offsets:50:5:compact
  12.     image: wurstmeister/kafka:1.0.1
  13.     depends_on:
  14.      - zoo1
  15.       - zoo2
  16.       - zoo3
  17.     ports:
  18.      - 9095:9092
  19.     volumes:
  20.      - /var/run/docker.sock:/var/run/docker.sock
  21.  
  22.   kafka1:
  23.     environment:
  24.      - KAFKA_BROKER_ID=2
  25.       - KAFKA_ADVERTISED_HOST_NAME=172.31.12.208
  26.       - KAFKA_ADVERTISED_PORT=9093
  27.       - KAFKA_ZOOKEEPER_CONNECT=zoo1:2184,zoo2:2182,zoo3:2183
  28.       - KAFKA_CREATE_TOPICS=pos_issue_coupon:3:3,pos_use_coupon:3:3,generate_coupons:3:3,__consumer_offsets:50:5:compact
  29.     image: wurstmeister/kafka:1.0.1
  30.     depends_on:
  31.      - zoo1
  32.       - zoo2
  33.       - zoo3
  34.     ports:
  35.      - 9093:9092
  36.     volumes:
  37.      - /var/run/docker.sock:/var/run/docker.sock
  38.  
  39.   kafka2:
  40.     environment:
  41.      - KAFKA_BROKER_ID=3
  42.       - KAFKA_ADVERTISED_HOST_NAME=172.31.12.208
  43.       - KAFKA_ADVERTISED_PORT=9094
  44.       - KAFKA_ZOOKEEPER_CONNECT=zoo1:2184,zoo2:2182,zoo3:2183
  45.       - KAFKA_CREATE_TOPICS=pos_issue_coupon:3:3,pos_use_coupon:3:3,generate_coupons:3:3,__consumer_offsets:50:5:compact
  46.     image: wurstmeister/kafka:1.0.1
  47.     depends_on:
  48.      - zoo1
  49.       - zoo2
  50.       - zoo3
  51.     ports:
  52.      - 9094:9092
  53.     volumes:
  54.      - /var/run/docker.sock:/var/run/docker.sock
  55.   zoo1:
  56.     image: zookeeper
  57.     restart: always
  58.     hostname: zoo1
  59.     ports:
  60.      - 2184:2181
  61.     environment:
  62.       ZOO_MY_ID: 1
  63.       ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
  64.  
  65.   zoo2:
  66.     image: zookeeper
  67.     restart: always
  68.     hostname: zoo2
  69.     ports:
  70.      - 2182:2181
  71.     environment:
  72.       ZOO_MY_ID: 2
  73.       ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=0.0.0.0:2888:3888 server.3=zoo3:2888:3888
  74.  
  75.   zoo3:
  76.     image: zookeeper
  77.     restart: always
  78.     hostname: zoo3
  79.     ports:
  80.      - 2183:2181
  81.     environment:
  82.       ZOO_MY_ID: 3
  83.       ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top