Guest User

Untitled

a guest
Dec 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. kafka1st:
  5. image: hyperledger/fabric-kafka
  6. restart: always
  7. networks:
  8. - fabric
  9. environment:
  10. - KAFKA_MESSAGE_MAX_BYTES=103809024
  11. - KAFKA_MAX_REQUEST_SIZE=104857600
  12. - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024
  13. - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=true
  14. - KAFKA_BROKER_ID=1
  15. - KAFKA_MIN_INSYNC_REPLICAS=1
  16. - KAFKA_DEFAULT_REPLICATION_FACTOR=1
  17. - KAFKA_ZOOKEEPER_CONNECT=node_zookeeper1st:2181,node_zookeeper2nd:2181,node_zookeeper3rd:2181
  18. deploy:
  19. placement:
  20. constraints: [node.hostname == your-swarm-hostname-of-node]
  21. depends_on:
  22. - node_zookeeper1st
  23. - node_zookeeper2nd
  24. - node_zookeeper3rd
  25.  
  26. ports:
  27. - 9092:9092
  28. - 9093:9093
  29.  
  30.  
  31. zookeeper1st:
  32. image: hyperledger/fabric-zookeeper
  33. restart: always
  34. networks:
  35. - fabric
  36.  
  37. environment:
  38. - ZOO_MY_ID=1
  39. - ZOO_SERVERS=server.1=0.0.0.0:2888:3888 server.2=zookeeper2nd:2888:3888 server.3=zookeeper3rd:2888:3888
  40. - ZOO_TICK_TIME=2000
  41. - ZOO_INIT_LIMIT=10
  42. - ZOO_SYNC_LIMIT=5
  43.  
  44. deploy:
  45. placement:
  46. constraints: [node.hostname == your-swarm-hostname-of-node]
  47.  
  48. ports:
  49. - 2181:2181
  50.  
  51.  
  52. zookeeper2nd:
  53. image: hyperledger/fabric-zookeeper
  54. restart: always
  55. networks:
  56. - fabric
  57.  
  58. environment:
  59. - ZOO_MY_ID=2
  60. - ZOO_SERVERS=server.1=zookeeper1st:2888:3888 server.2=0.0.0.0:2888:3888 server.3=_zookeeper3rd:2888:3888
  61. - ZOO_TICK_TIME=2000
  62. - ZOO_INIT_LIMIT=10
  63. - ZOO_SYNC_LIMIT=5
  64.  
  65. deploy:
  66. placement:
  67. constraints: [node.hostname == your-swarm-hostname-of-node]
  68. ports:
  69. - 12181:2181
  70.  
  71. zookeeper3rd:
  72. image: hyperledger/fabric-zookeeper
  73. restart: always
  74. networks:
  75. - fabric
  76. environment:
  77. - ZOO_MY_ID=3
  78. - ZOO_SERVERS=server.1=zookeeper1st:2888:3888 server.2=zookeeper2nd:2888:3888 server.3=0.0.0.0:2888:3888
  79. - ZOO_TICK_TIME=2000
  80. - ZOO_INIT_LIMIT=10
  81. - ZOO_SYNC_LIMIT=5
  82. deploy:
  83. placement:
  84. constraints: [node.hostname == your-swarm-hostname-of-node]
  85.  
  86. ports:
  87. - 22181:2181
  88.  
  89.  
  90. networks:
  91. fabric:
  92. external: true
Add Comment
Please, Sign In to add comment