-
Notifications
You must be signed in to change notification settings - Fork 7
/
hyperledger-kafka.yaml
72 lines (72 loc) · 2.09 KB
/
hyperledger-kafka.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
networks:
hyperledger-ov:
external:
name: hyperledger-ov
services:
kafka0:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: kafka0.qsoft.com
image: hyperledger/fabric-kafka:x86_64-1.0.2
networks:
hyperledger-ov:
aliases:
- kafka0.qsoft.com
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- KAFKA_MESSAGE_MAX_BYTES=103809024
- KAFKA_REPLICA_FETCH_MAX_BYTES=103809024
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
- KAFKA_MIN_INSYNC_REPLICAS=2
- KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
- KAFKA_BROKER_ID=0
kafka1:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: kafka1.qsoft.com
image: hyperledger/fabric-kafka:x86_64-1.0.2
networks:
hyperledger-ov:
aliases:
- kafka1.qsoft.com
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- KAFKA_MESSAGE_MAX_BYTES=103809024
- KAFKA_REPLICA_FETCH_MAX_BYTES=103809024
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
- KAFKA_MIN_INSYNC_REPLICAS=2
- KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
- KAFKA_BROKER_ID=1
kafka2:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: kafka2.qsoft.com
image: hyperledger/fabric-kafka:x86_64-1.0.2
networks:
hyperledger-ov:
aliases:
- kafka2.qsoft.com
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- KAFKA_MESSAGE_MAX_BYTES=103809024
- KAFKA_REPLICA_FETCH_MAX_BYTES=103809024
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
- KAFKA_MIN_INSYNC_REPLICAS=2
- KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
- KAFKA_BROKER_ID=2