Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- networks:
- nodex:
- driver: overlay
- attachable: true
- services:
- peer0_company:
- deploy:
- replicas: 1
- restart_policy:
- condition: on-failure
- delay: 5s
- max_attempts: 3
- image: hyperledger/fabric-peer
- hostname: peer0.company
- environment:
- #Logging Fields#
- - CORE_LOGGING_GOSSIP=ERROR
- - CORE_LOGGING_MSP=DEBUG
- - FABRIC_LOGGING_SPEC=DEBUG
- #Peer Config#
- - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=nodex_nodex
- - CORE_PEER_GOSSIP_USELEADERELECTION=true
- - CORE_PEER_GOSSIP_ORGLEADER=false
- - CORE_PEER_PROFILE_ENABLED=true
- - CORE_PEER_ID=peer0.company
- - CORE_PEER_LOCALMSPID=Org1MSP
- - CORE_PEER_ADDRESS=peer0.company:7051
- - CORE_PEER_LISTENADDRESS=0.0.0.0:7051
- - CORE_PEER_CHAINCODEADDRESS=peer0.company:7052
- - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052
- - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.company:7051
- - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.company:8051
- - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@company/msp
- #TLS Fields#
- - CORE_PEER_TLS_ENABLED=true
- - CORE_PEER_TLS_CLIENTAUTHREQUIRED=true
- - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
- - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
- - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
- - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/etc/hyperledger/msp/users/Admin@company/tls/ca.crt
- - CORE_PEER_TLS_CLIENTCERT_FILE=/etc/hyperledger/msp/users/Admin@company/tls/client.crt
- - CORE_PEER_TLS_CLIENTKEY_FILE=/etc/hyperledger/msp/users/Admin@company/tls/client.key
- volumes:
- - /var/run/:/host/var/run/
- - ../crypto-config/ordererOrganizations/company/orderers/orderer0.company/msp/tlscacerts:/etc/hyperledger/fabric/ordererCerts
- - ../crypto-config/peerOrganizations/company/peers/peer0.company/tls:/etc/hyperledger/fabric/tls
- - ../crypto-config/peerOrganizations/company/peers/peer0.company/msp:/etc/hyperledger/fabric/msp
- - ../crypto-config/peerOrganizations/company/users:/etc/hyperledger/msp/users
- - ../channel-artifacts:/etc/hyperledger/configtx
- command: peer node start
- working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
- ports:
- - 7051:7051
- - 7052:7052
- - 7053:7053
- networks:
- nodex:
- aliases:
- - peer0.company
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement