version: '2' services: 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=orderer0:7050 - CORE_PEER_ADDRESS=peer0:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/config/peers/peer0.peerOrg1/tls_config/peer0Signer-peer0-peerOrg0-tls.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/config/peers/peer0.peerOrg1/tls_config/peer0Signer-peer0-peerOrg0-tls.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/config/msp/cacerts/peerOrg0.pem #- CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0 - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/config/peers/peer0.peerOrg1 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; ' #command: /bin/bash extra_hosts: - "orderer0:10.16.80.209" - "peer0:10.16.80.210" - "peer1:10.16.80.211" - "peer2:10.16.80.212" - "peer3:10.16.80.213" volumes: - /var/run/:/host/var/run/ - ./examples/:/opt/gopath/src/github.com/hyperledger/fabric/examples/ #- ../chaincode/go/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto-config/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./crypto-config/peerOrganizations/peerOrg1/:/etc/hyperledger/config #depends_on: #- orderer0 #- peer0 #- peer1 #- peer2 #- peer3