-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-pc3.yaml
108 lines (103 loc) · 3.38 KB
/
docker-compose-pc3.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.4'
networks:
fabric:
external:
name: fabric
services:
zk3:
image: hyperledger/fabric-zookeeper
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric
- ZOO_MY_ID=3
- ZOO_SERVERS=server.1=zk1:2888:3888 server.2=zk2:2888:3888 server.3=zk3:2888:3888
- ZOO_TICK_TIME=2000
- ZOO_INIT_LIMIT=10
- ZOO_SYNC_LIMIT=5
container_name: zk3
hostname: zk3
ports:
- '2181'
- '2888'
- '3888'
networks:
fabric:
aliases:
- zk3
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == NAMEOFHOST
kafka2:
image: hyperledger/fabric-kafka
restart: always
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric
- KAFKA_BROKER_ID=2
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false
- KAFKA_MIN_INSYNC_REPLICAS=2
- KAFKA_MESSAGE_MAX_BYTES=50000000
- KAFKA_REPLICA_FETCH_MAX_BYTES=50000000
- KAFKA_PRODUCER_MAX_REQUEST_SIZE=50000000
- KAFKA_CONSUMER_MAX_PARTITION_FETCH_BYTES=50000000
- CONNECT_PRODUCER_MAX_REQUEST_SIZE=50000000
- CONNECT_CONSUMER_MAX_PARTITION_FETCH_BYTES=50000000
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
- KAFKA_ZOOKEEPER_CONNECT=zk1:2181,zk2:2181,zk3:2181
container_name: kafka2
ports:
- '19093:9092'
networks:
fabric:
aliases:
- kafka2
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == NAMEOFHOST
orderer2-example-com:
container_name: orderer2.example.com
image: hyperledger/fabric-orderer
environment:
- ORDERER_GENERAL_LOGLEVEL=DEBUG
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=false
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
#- ORDERER_GENERAL_PROFILE_ENABLED=true
#- ORDERER_GENERAL_PROFILE_ADDRESS=orderer2.example.com:6065
working_dir: /opt/gopath/src/github.com/hyperledger/fabric ## orderer안붙임
command: orderer
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/var/hyperledger/orderer/tls
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == NAMEOFHOST
ports:
- 9050:7050
- 8065:6065
networks:
fabric:
aliases:
- orderer2.example.com