docker-compose-cli.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: '2'
  2. services:
  3. cli:
  4. container_name: cli
  5. image: hyperledger/fabric-peer
  6. tty: true
  7. environment:
  8. - GOPATH=/opt/gopath
  9. - CORE_PEER_ADDRESSAUTODETECT=true
  10. - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
  11. - CORE_LOGGING_LEVEL=DEBUG
  12. - CORE_NEXT=true
  13. - CORE_PEER_ID=cli
  14. - CORE_PEER_ENDORSER_ENABLED=true
  15. # - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer0:7050
  16. - CORE_PEER_ADDRESS=peer0:7051
  17. - CORE_PEER_LOCALMSPID=Org0MSP
  18. - CORE_PEER_TLS_ENABLED=true
  19. - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig/signcerts/peer0Signer.pem
  20. - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig/keystore/peer0Signer.pem
  21. - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig/cacerts/peerOrg0.pem
  22. # - CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0
  23. - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig
  24. working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
  25. command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; '
  26. #command: /bin/bash
  27. extra_hosts:
  28. - "orderer0:10.16.80.209"
  29. - "peer0:10.16.80.210"
  30. - "peer1:10.16.80.211"
  31. - "peer2:10.16.80.212"
  32. - "peer3:10.16.80.213"
  33. volumes:
  34. - /var/run/:/host/var/run/
  35. - ./examples/:/opt/gopath/src/github.com/hyperledger/fabric/examples/
  36. #- ../chaincode/go/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go
  37. - ./crypto:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
  38. - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
  39. #depends_on:
  40. #- orderer0
  41. #- peer0
  42. #- peer1
  43. #- peer2
  44. #- peer3