-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-base.yaml
85 lines (79 loc) · 3.21 KB
/
docker-compose-base.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
# Blockchain Quick Start Guide
version: '2'
services:
orderer.ic.com:
container_name: orderer.ic.com
image: hyperledger/fabric-orderer
environment:
- ORDERER_GENERAL_LOGLEVEL=debug
- 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=true
- 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]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
command: orderer
volumes:
- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ../crypto-config/ordererOrganizations/ic.com/orderers/orderer.ic.com/msp:/var/hyperledger/orderer/msp
- ../crypto-config/ordererOrganizations/ic.com/orderers/orderer.ic.com/tls/:/var/hyperledger/orderer/tls
ports:
- 7050:7050
peer0.org1.ic.com:
container_name: peer0.org1.ic.com
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer0.org1.ic.com
- CORE_PEER_ADDRESS=peer0.org1.ic.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.ic.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/org1.ic.com/peers/peer0.org1.ic.com/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/org1.ic.com/peers/peer0.org1.ic.com/tls:/etc/hyperledger/fabric/tls
ports:
- 7051:7051
- 7053:7053
peer0.org2.ic.com:
container_name: peer0.org2.ic.com
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer0.org2.ic.com
- CORE_PEER_ADDRESS=peer0.org2.ic.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.ic.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.ic.com:7051
- CORE_PEER_LOCALMSPID=Org2MSP
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/org2.ic.com/peers/peer0.org2.ic.com/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/org2.ic.com/peers/peer0.org2.ic.com/tls:/etc/hyperledger/fabric/tls
ports:
- 9051:7051
- 9053:7053
peer0.org3.ic.com:
container_name: peer0.org3.ic.com
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer0.org3.ic.com
- CORE_PEER_ADDRESS=peer0.org3.ic.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.ic.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.ic.com:7051
- CORE_PEER_LOCALMSPID=Org3MSP
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/org3.ic.com/peers/peer0.org3.ic.com/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/org3.ic.com/peers/peer0.org3.ic.com/tls:/etc/hyperledger/fabric/tls
ports:
- 11051:7051
- 11053:7053