mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Hard code rc1 tag to docker-compose Change-Id: I72c04a8c03df6179f69197a87f27c18a668b186d Signed-off-by: Nick Gaski <ngaski@us.ibm.com>
86 lines
3.3 KiB
YAML
86 lines
3.3 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
|
|
orderer.example.com:
|
|
container_name: orderer.example.com
|
|
image: hyperledger/fabric-orderer:x86_64-1.0.0-rc1
|
|
environment:
|
|
- ORDERER_GENERAL_LOGLEVEL=debug
|
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
|
- ORDERER_GENERAL_GENESISMETHOD=file
|
|
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/twoorgs.genesis.block
|
|
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
|
|
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer
|
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
|
|
command: orderer
|
|
ports:
|
|
- 7050:7050
|
|
volumes:
|
|
- ./:/etc/hyperledger/configtx
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer
|
|
- ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1
|
|
- ./crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/:/etc/hyperledger/msp/peerOrg2
|
|
|
|
peer0.org1.example.com:
|
|
container_name: peer0.org1.example.com
|
|
image: hyperledger/fabric-peer:x86_64-1.0.0-rc1
|
|
environment:
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
- CORE_PEER_ID=peer0.org1.example.com
|
|
- CORE_LOGGING_PEER=debug
|
|
- CORE_CHAINCODE_LOGGING_LEVEL=DEBUG
|
|
- CORE_PEER_LOCALMSPID=Org1MSP
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
|
|
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
|
|
# # 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=network_default
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984
|
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
|
|
command: peer node start
|
|
ports:
|
|
- 7051:7051
|
|
- 7053:7053
|
|
volumes:
|
|
- /var/run/:/host/var/run/
|
|
- ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peer
|
|
- ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users
|
|
- .:/etc/hyperledger/configtx
|
|
depends_on:
|
|
- orderer.example.com
|
|
|
|
couchdb:
|
|
container_name: couchdb
|
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0-rc1
|
|
ports:
|
|
- 5984:5984
|
|
environment:
|
|
DB_URL: http://localhost:5984/member_db
|
|
|
|
cli:
|
|
container_name: cli
|
|
image: hyperledger/fabric-tools:x86_64-1.0.0-rc1
|
|
tty: true
|
|
environment:
|
|
- GOPATH=/opt/gopath
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
- CORE_LOGGING_LEVEL=DEBUG
|
|
- CORE_PEER_ID=cli
|
|
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
|
|
- CORE_PEER_LOCALMSPID=Org1MSP
|
|
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com
|
|
- CORE_CHAINCODE_KEEPALIVE=10
|
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
|
|
command: /bin/bash
|
|
volumes:
|
|
- /var/run/:/host/var/run/
|
|
- ./../chaincode:/opt/gopath/src/github.com/fabcar/
|
|
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
|
|
depends_on:
|
|
#- ca.example.com
|
|
- orderer.example.com
|
|
- peer0.org1.example.com
|
|
- couchdb
|