-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding docker info from Murali, including 1) docker-compose file 2) instruction to run with docker images Change-Id: I7b3511f3774e5490e42d7aba0a95691b5e08b166 Signed-off-by: Binh Q. Nguyen <binhn@us.ibm.com>
- Loading branch information
Showing
2 changed files
with
138 additions
and
16 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
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,81 @@ | ||
version: '2' | ||
networks: | ||
bridge: | ||
|
||
services: | ||
orderer: | ||
container_name: orderer | ||
image: hyperledger/fabric-orderer | ||
environment: | ||
- ORDERER_GENERAL_LEDGERTYPE=ram | ||
- ORDERER_GENERAL_BATCHTIMEOUT=10s | ||
- ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10 | ||
- ORDERER_GENERAL_MAXWINDOWSIZE=1000 | ||
- ORDERER_GENERAL_ORDERERTYPE=solo | ||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 | ||
- ORDERER_GENERAL_LISTENPORT=5005 | ||
- ORDERER_RAMLEDGER_HISTORY_SIZE=100 | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer | ||
command: orderer | ||
ports: | ||
- 5005:5005 | ||
networks: | ||
- bridge | ||
|
||
peer0: | ||
container_name: peer0 | ||
image: hyperledger/fabric-peer | ||
environment: | ||
- CORE_PEER_ADDRESSAUTODETECT=true | ||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | ||
- CORE_LOGGING_LEVEL=DEBUG | ||
- CORE_PEER_NETWORKID=peer0 | ||
- CORE_NEXT=true | ||
- CORE_PEER_ENDORSER_ENABLED=true | ||
- CORE_PEER_ID=peer0 | ||
- CORE_PEER_PROFILE_ENABLED=true | ||
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 | ||
- CORE_PEER_GOSSIP_ORGLEADER=true | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | ||
ports: | ||
- 7051:7051 | ||
- 7053:7053 | ||
command: peer node start --peer-defaultchain=false | ||
links: | ||
- orderer:orderer | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
depends_on: | ||
- orderer | ||
networks: | ||
- bridge | ||
|
||
cli: | ||
container_name: cli | ||
image: hyperledger/fabric-peer | ||
tty: true | ||
environment: | ||
- GOPATH=/opt/gopath | ||
- CORE_PEER_ADDRESSAUTODETECT=true | ||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | ||
- CORE_LOGGING_LEVEL=DEBUG | ||
- CORE_NEXT=true | ||
- CORE_PEER_ID=cli | ||
- CORE_PEER_ENDORSER_ENABLED=true | ||
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 | ||
- CORE_PEER_ADDRESS=peer0:7051 | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | ||
command: /bin/sh | ||
links: | ||
- orderer:orderer | ||
- peer0:peer0 | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
#in the "- <HOST>:/opt/gopath/src/github.com/hyperledger/fabric/examples/" mapping below, the HOST part | ||
#should be modified to the path on the host. This will work as is in the Vagrant environment | ||
- /opt/gopath/src/github.com/hyperledger/fabric/examples/:/opt/gopath/src/github.com/hyperledger/fabric/examples/ | ||
depends_on: | ||
- orderer | ||
- peer0 | ||
networks: | ||
- bridge |