Last active
December 11, 2018 18:09
-
-
Save mohammadobaid1/5f8dfed4761ad8c986689f3f3d453640 to your computer and use it in GitHub Desktop.
cli.yaml
This file contains hidden or 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
| version : "3" | |
| cli: | |
| image: hyperledger/fabric-tools | |
| tty: true | |
| environment: | |
| - GOPATH=/opt/gopath | |
| - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | |
| - CORE_LOGGING_LEVEL=DEBUG | |
| - CORE_PEER_ID=cli | |
| - CORE_PEER_ADDRESS=deanpeersecond:7051 | |
| - CORE_PEER_LOCALMSPID=DeanMSP #mspid of peer which you defined in configtx.yaml | |
| - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ | |
| - CORE_CHAINCODE_KEEPALIVE=10 | |
| working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | |
| command: /bin/bash | |
| volumes: | |
| - ./crypto-material/peer2/:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ | |
| - /var/run/:/host/var/run/ | |
| - ./chaincode:/opt/gopath/src/github.com/chaincode | |
| networks: | |
| - fabric | |
| deploy: | |
| placement: | |
| constraints: [node.hostname == hostname-of-swarm-node] | |
| peercli: | |
| image: hyperledger/fabric-tools | |
| tty: true | |
| environment: | |
| - GOPATH=/opt/gopath | |
| - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | |
| - CORE_LOGGING_LEVEL=DEBUG | |
| - CORE_PEER_ID=cli | |
| - CORE_PEER_ADDRESS=deanpeerfirst:7051 | |
| - CORE_PEER_LOCALMSPID=DeanMSP | |
| - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ | |
| - CORE_CHAINCODE_KEEPALIVE=10 | |
| working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | |
| command: /bin/bash | |
| volumes: | |
| - ./crypto-material/peer1/:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ | |
| - /var/run/:/host/var/run/ | |
| - ./chaincode:/opt/gopath/src/github.com/chaincode | |
| # - ./channel.tx:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel.tx | |
| networks: | |
| - fabric | |
| deploy: | |
| placement: | |
| constraints: [node.hostname == hostname-of-swarmnode] | |
| networks: | |
| fabric: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment