Created
August 3, 2020 14:51
-
-
Save kctam/3913b51fe42eff1482308121f140770a to your computer and use it in GitHub Desktop.
Docker Compose File for Bringing up peer1.org1.example.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
version: '2' | |
volumes: | |
peer1.org1.example.com: | |
networks: | |
test: | |
services: | |
peer1.org1.example.com: | |
container_name: peer1.org1.example.com | |
image: hyperledger/fabric-peer:$IMAGE_TAG | |
environment: | |
#Generic peer variables | |
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | |
# the following setting starts chaincode containers on the same | |
# bridge network as the peers | |
# https://docs.docker.com/compose/networking/ | |
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test | |
- FABRIC_LOGGING_SPEC=INFO | |
#- 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 | |
# Peer specific variabes | |
- CORE_PEER_ID=peer1.org1.example.com | |
- CORE_PEER_ADDRESS=peer1.org1.example.com:8051 | |
- CORE_PEER_LISTENADDRESS=0.0.0.0:8051 | |
- CORE_PEER_CHAINCODEADDRESS=peer1.org1.example.com:8052 | |
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:8052 | |
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:8051 | |
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:8051 | |
- CORE_PEER_LOCALMSPID=Org1MSP | |
volumes: | |
- /var/run/:/host/var/run/ | |
- ../organizations/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp | |
- ../organizations/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls | |
- peer1.org1.example.com:/var/hyperledger/production | |
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | |
command: peer node start | |
ports: | |
- 8051:8051 | |
networks: | |
- test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment