Created
January 8, 2020 22:40
-
-
Save jorgedison/415e8603d7d27f4136038d0bf2092458 to your computer and use it in GitHub Desktop.
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
version: '2' | |
services: | |
peer-base: | |
image: hyperledger/fabric-peer | |
environment: | |
- 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/ | |
# ---CHANGED--- | |
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic | |
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=midominionetwork_basic | |
# Agregado 11-12-2019 | |
- CORE_PEER_ADDRESSAUTODETECT=true | |
- FABRIC_LOGGING_SPEC=INFO | |
# - FABRIC_LOGGING_SPEC=DEBUG | |
- CORE_PEER_TLS_ENABLED=true | |
- CORE_PEER_GOSSIP_USELEADERELECTION=true | |
- CORE_PEER_GOSSIP_ORGLEADER=false | |
- 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 | |
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer | |
command: peer node start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment