123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- version: '2'
- services:
- cli: # client node
- image: hyperledger/fabric-tools:x86_64-1.0.5
- restart: always
- tty: true
- container_name: fabric-cli
- hostname: fabric-cli
- environment:
- - CORE_PEER_ID=fabric-cli
- - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 # default to operate on peer0.org1
- - CORE_PEER_LOCALMSPID=Org1MSP
- - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
- - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
- - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
- - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
- - CORE_PEER_TLS_ENABLED=true
- - CORE_LOGGING_LEVEL=DEBUG
- - CORE_LOGGING_FORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
- - ORDERER_CA=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
- working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
- command: bash -c 'cd /tmp; source scripts/func.sh; while true; do sleep 20170504; done'
- volumes:
- - ./scripts:/tmp/scripts
- - ./solo/channel-artifacts:/tmp/channel-artifacts
- - ./solo/configtx.yaml:/etc/hyperledger/fabric/configtx.yaml
- - ./solo/crypto-config.yaml:/etc/hyperledger/fabric/crypto-config.yaml
- - ./solo/crypto-config:/etc/hyperledger/fabric/crypto-config
- - ./solo/examples:/opt/gopath/src/examples
- peer0.org1.example.com:
- image: hyperledger/fabric-peer:x86_64-1.0.5
- restart: always
- container_name: peer0.org1.example.com
- hostname: peer0.org1.example.com
- environment:
- - CORE_PEER_ID=peer0.org1.example.com
- - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
- - CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.example.com:7052
- - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051
- - CORE_PEER_LOCALMSPID=Org1MSP
- - CORE_PEER_TLS_ENABLED=true
- - CORE_PEER_ADDRESSAUTODETECT=false
- - CORE_LOGGING_LEVEL=DEBUG
- - CORE_LOGGING_FORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
- - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=v105_default # uncomment this to use specific network
- - CORE_PEER_GOSSIP_USELEADERELECTION=true
- - CORE_PEER_GOSSIP_ORGLEADER=false # this node is the group leader, default to false
- - CORE_PEER_PROFILE_ENABLED=false
- - 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_CHIANCODE_LOGGING_LEVEL=DEBUG
- - CORE_CHIANCODE_LOGGING_FORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- - ./solo/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
- - ./solo/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
- ports:
- - 7051:7051
- - 7052:7052
- - 7053:7053
- command: peer node start
- extra_hosts:
- - "orderer.example.com:106.14.183.136"
- couchdb:
- container_name: couchdb
- image: hyperledger/fabric-couchdb:x86_64-1.0.5
- ports:
- - 5984:5984
- environment:
- DB_URL: http://localhost:5984/member_db
|