docker-compose-cli.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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=Org1MSP
  18. - CORE_PEER_TLS_ENABLED=true
  19. - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/config/peers/peer0.peerOrg1/tls_config/peer0Signer-peer0-peerOrg0-tls.crt
  20. - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/config/peers/peer0.peerOrg1/tls_config/peer0Signer-peer0-peerOrg0-tls.key
  21. - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/config/msp/cacerts/peerOrg0.pem
  22. #- CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0
  23. - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/config/peers/peer0.peerOrg1
  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-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto-config/
  38. - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
  39. - ./crypto-config/peerOrganizations/peerOrg1/:/etc/hyperledger/config
  40. #depends_on:
  41. #- orderer0
  42. #- peer0
  43. #- peer1
  44. #- peer2
  45. #- peer3