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:106.14.183.136" - "peer0:106.14.183.136" - "peer1:139.196.88.181" - "peer2:47.100.40.117" - "peer3:47.100.42.120" 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