Skip to content

Instantly share code, notes, and snippets.

@RafaelAPB
Created June 18, 2021 10:45
Show Gist options
  • Save RafaelAPB/b82a64d4122e103f06dd7e4b9bc9023c to your computer and use it in GitHub Desktop.
Save RafaelAPB/b82a64d4122e103f06dd7e4b9bc9023c to your computer and use it in GitHub Desktop.
version: "2"
volumes:
peer0.org5.example.com:
networks:
test:
name: fabric_test
services:
peer0.org5.example.com:
container_name: peer0.org5.example.com
image: hyperledger/fabric-peer:latest
labels:
service: hyperledger-fabric
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
- FABRIC_LOGGING_SPEC=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_PROFILE_ENABLED=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_ID=peer0.org5.example.com
- CORE_PEER_ADDRESS=peer0.org5.example.com:11071
- CORE_PEER_LISTENADDRESS=0.0.0.0:11071
- CORE_PEER_CHAINCODEADDRESS=peer0.org5.example.com:11072
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:11072
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org5.example.com:11071
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org5.example.com:11071
- CORE_PEER_LOCALMSPID=org5MSP
volumes:
- /var/run/docker.sock:/host/var/run/docker.sock
- >-
/add-org-org5/organizations/peerOrganizations/org5.example.com/peers/peer0.org5.example.com/msp:/etc/hyperledger/fabric/msp
- >-
/add-org-org5/organizations/peerOrganizations/org5.example.com/peers/peer0.org5.example.com/tls:/etc/hyperledger/fabric/tls
- peer0.org5.example.com:/var/hyperledger/production
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: peer node start
ports:
- "11071:11071"
networks:
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment