Created
March 20, 2020 03:14
-
-
Save kctam/2257138e9f677a95a6f6a2792e27c36d to your computer and use it in GitHub Desktop.
For orderer-cli container
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: '2' | |
| networks: | |
| byfn: | |
| services: | |
| orderer-cli: | |
| container_name: orderer-cli | |
| image: hyperledger/fabric-tools:$IMAGE_TAG | |
| tty: true | |
| stdin_open: true | |
| environment: | |
| - SYS_CHANNEL=$SYS_CHANNEL | |
| - GOPATH=/opt/gopath | |
| - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | |
| #- FABRIC_LOGGING_SPEC=DEBUG | |
| - FABRIC_LOGGING_SPEC=INFO | |
| - CORE_PEER_ID=cli | |
| - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 | |
| - CORE_PEER_LOCALMSPID=OrdererMSP | |
| - CORE_PEER_TLS_ENABLED=true | |
| - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt | |
| - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key | |
| - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | |
| - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/users/[email protected]/msp | |
| working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | |
| command: /bin/bash | |
| volumes: | |
| - /var/run/:/host/var/run/ | |
| - ./../chaincode/:/opt/gopath/src/github.com/chaincode | |
| - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ | |
| - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ | |
| - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts | |
| networks: | |
| - byfn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment