-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-orderer.yaml
39 lines (36 loc) · 1.55 KB
/
docker-compose-orderer.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
version: '2'
networks:
hf-exp:
services:
orderer.example.com:
container_name: orderer.ksachdeva-exp.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:
- ./genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/ksachdeva-exp.com/orderers/orderer.ksachdeva-exp.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/ksachdeva-exp.com/orderers/orderer.ksachdeva-exp.com/tls/:/var/hyperledger/orderer/tls
extra_hosts:
- "peer0.org1.ksachdeva-exp.com:34.73.236.174"
- "peer1.org1.ksachdeva-exp.com:34.73.236.174"
- "peer0.org2.ksachdeva-exp.com:34.73.236.174"
- "peer1.org2.ksachdeva-exp.com:34.73.236.174"
- "peer0.org3.ksachdeva-exp.com:34.73.236.174"
- "peer1.org3.ksachdeva-exp.com:34.73.236.174"
ports:
- 7050:7050
networks:
- hf-exp