1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- version: '2'
- services:
- couchdb3:
- container_name: couchdb3
- image: hyperledger/fabric-couchdb
- # Uncomment the port mapping if you want to expose the CouchDB service,
- # for example to utilize Fauxton User Interface in dev environments.
- volumes:
- - /var/hyperledger/couchdb3:/opt/couchdb/data
- ports:
- - 5984:5984
- peer3:
- container_name: peer3
- image: hyperledger/fabric-peer
- environment:
- - GRPC_TRACE=all
- - GRPC_VERBOSITY=debug
- - CORE_NEXT=true
- - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- - CORE_PEER_ID=peer3
- - CORE_PEER_ENDORSER_ENABLED=true
- - CORE_PEER_LOCALMSPID=Org1MSP
- - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
- - CORE_PEER_GOSSIP_USELEADERELECTION=true
- - CORE_PEER_GOSSIP_ORGLEADER=false
- - CORE_PEER_ADDRESS=peer3:7051
- - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer3:7051
- - CORE_PEER_TLS_ENABLED=true
- - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/tls/server.key
- - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/tls/server.crt
- - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/tls/ca.crt
- # the following setting starts chaincode containers on the same
- # bridge network as the peers
- # https://docs.docker.com/compose/networking/
- - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=midea_default
- - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
- working_dir: /opt/gopath/src/github.com/hyperledger/fabric
- command: peer node start --peer-defaultchain=false
- 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"
- ports:
- - 7051:7051
- - 7053:7053
- volumes:
- - /var/run/:/host/var/run/
- - ./crypto-config/peerOrganizations/peerOrg1/peers/peer3.peerOrg1/msp/:/etc/hyperledger/msp/peer
- - ./crypto-config/peerOrganizations/peerOrg1/peers/peer3.peerOrg1/tls/:/etc/hyperledger/tls
- depends_on:
- #- orderer0
- - couchdb3
|