-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hasan.jaman
committed
Apr 5, 2019
0 parents
commit 72d9cc0
Showing
14 changed files
with
1,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
COMPOSE_PROJECT_NAME=net | ||
IMAGE_TAG=latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/channel-artifacts/*.tx | ||
/channel-artifacts/*.block | ||
/crypto-config/* | ||
/docker-compose-e2e.yaml | ||
/ledgers | ||
/ledgers-backup | ||
channel-artifacts/* | ||
/channel-artifacts/* | ||
crypto-config/* | ||
/crypto-config/* | ||
msp/* | ||
/msp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
services: | ||
|
||
orderer.example.com: | ||
container_name: orderer.example.com | ||
image: hyperledger/fabric-orderer:$IMAGE_TAG | ||
environment: | ||
- FABRIC_LOGGING_SPEC=INFO | ||
- 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] | ||
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 | ||
- ORDERER_KAFKA_VERBOSE=true | ||
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/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp | ||
- ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls | ||
- orderer.example.com:/var/hyperledger/production/orderer | ||
ports: | ||
- 7050:7050 | ||
|
||
peer0.org1.example.com: | ||
container_name: peer0.org1.example.com | ||
extends: | ||
file: peer-base.yaml | ||
service: peer-base | ||
environment: | ||
- CORE_PEER_ID=peer0.org1.example.com | ||
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051 | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:7051 | ||
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 | ||
- CORE_PEER_LOCALMSPID=Org1MSP | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
- ../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp | ||
- ../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls | ||
- peer0.org1.example.com:/var/hyperledger/production | ||
ports: | ||
- 7051:7051 | ||
- 7053:7053 | ||
|
||
peer1.org1.example.com: | ||
container_name: peer1.org1.example.com | ||
extends: | ||
file: peer-base.yaml | ||
service: peer-base | ||
environment: | ||
- CORE_PEER_ID=peer1.org1.example.com | ||
- CORE_PEER_ADDRESS=peer1.org1.example.com:7051 | ||
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051 | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 | ||
- CORE_PEER_LOCALMSPID=Org1MSP | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
- ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp | ||
- ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls | ||
- peer1.org1.example.com:/var/hyperledger/production | ||
|
||
ports: | ||
- 8051:7051 | ||
- 8053:7053 | ||
|
||
peer0.org2.example.com: | ||
container_name: peer0.org2.example.com | ||
extends: | ||
file: peer-base.yaml | ||
service: peer-base | ||
environment: | ||
- CORE_PEER_ID=peer0.org2.example.com | ||
- CORE_PEER_ADDRESS=peer0.org2.example.com:7051 | ||
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051 | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051 | ||
- CORE_PEER_LOCALMSPID=Org2MSP | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
- ../crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp | ||
- ../crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls:/etc/hyperledger/fabric/tls | ||
- peer0.org2.example.com:/var/hyperledger/production | ||
ports: | ||
- 9051:7051 | ||
- 9053:7053 | ||
|
||
peer1.org2.example.com: | ||
container_name: peer1.org2.example.com | ||
extends: | ||
file: peer-base.yaml | ||
service: peer-base | ||
environment: | ||
- CORE_PEER_ID=peer1.org2.example.com | ||
- CORE_PEER_ADDRESS=peer1.org2.example.com:7051 | ||
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051 | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:7051 | ||
- CORE_PEER_LOCALMSPID=Org2MSP | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
- ../crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/msp:/etc/hyperledger/fabric/msp | ||
- ../crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls:/etc/hyperledger/fabric/tls | ||
- peer1.org2.example.com:/var/hyperledger/production | ||
ports: | ||
- 10051:7051 | ||
- 10053:7053 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
services: | ||
peer-base: | ||
image: hyperledger/fabric-peer:$IMAGE_TAG | ||
environment: | ||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | ||
# the following setting starts chaincode containers on the same | ||
# bridge network as the peers | ||
# https://docs.docker.com/compose/networking/ | ||
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_byfn | ||
- FABRIC_LOGGING_SPEC=INFO | ||
#- FABRIC_LOGGING_SPEC=DEBUG | ||
- CORE_PEER_TLS_ENABLED=true | ||
- CORE_PEER_GOSSIP_USELEADERELECTION=true | ||
- CORE_PEER_GOSSIP_ORGLEADER=false | ||
- CORE_PEER_PROFILE_ENABLED=true | ||
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt | ||
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key | ||
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | ||
command: peer node start |
Oops, something went wrong.