2017-01-04 14:54:05 +08:00
|
|
|
# https://github.com/yeasy/docker-compose-files/tree/master/hyperledger
|
|
|
|
# This compose file will start a Hyperledger Fabric 1.0 MVE, including
|
2017-01-24 10:24:12 +08:00
|
|
|
# * ca
|
2017-01-04 14:54:05 +08:00
|
|
|
# * orderer
|
|
|
|
# * peer
|
|
|
|
# * sdk for testing
|
|
|
|
|
|
|
|
version: '2.0'
|
|
|
|
|
|
|
|
services:
|
2017-01-24 10:24:12 +08:00
|
|
|
ca:
|
|
|
|
image: hyperledger/fabric-ca
|
|
|
|
container_name: fabric-ca
|
|
|
|
hostname: ca
|
|
|
|
# command: /go/src/github.com/hyperledger/fabric-ca/bin/ca server start -ca testdata/ec.pem -ca-key testdata/ec-key.pem -config testdata/testconfig.json
|
2017-01-04 14:54:05 +08:00
|
|
|
ports:
|
|
|
|
- "8888:8888"
|
2017-01-24 10:24:12 +08:00
|
|
|
command: fabric-ca server start -ca testdata/ec.pem -ca-key testdata/ec-key.pem -config testdata/testconfig.json -address="0.0.0.0"
|
2017-01-04 14:54:05 +08:00
|
|
|
|
|
|
|
orderer:
|
|
|
|
image: hyperledger/fabric-orderer
|
|
|
|
container_name: fabric-orderer
|
|
|
|
hostname: orderer
|
|
|
|
environment:
|
|
|
|
- ORDERER_GENERAL_LEDGERTYPE=ram
|
|
|
|
- ORDERER_GENERAL_BATCHTIMEOUT=10s
|
|
|
|
- ORDERER_GENERAL_MAXMESSAGECOUNT=10
|
|
|
|
- ORDERER_GENERAL_MAXWINDOWSIZE=1000
|
|
|
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
2017-02-08 15:45:46 +08:00
|
|
|
- ORDERER_GENERAL_LISTENPORT=7050
|
2017-01-04 14:54:05 +08:00
|
|
|
- ORDERER_RAMLEDGER_HISTORY_SIZE=100
|
2017-02-27 08:56:30 +08:00
|
|
|
- CONFIGTX_ORDERER_ORDERERTYPE=solo
|
2017-01-04 14:54:05 +08:00
|
|
|
ports:
|
|
|
|
- "7050:7050"
|
|
|
|
command: orderer
|
|
|
|
|
2017-02-08 15:45:46 +08:00
|
|
|
peer0:
|
2017-01-04 14:54:05 +08:00
|
|
|
extends:
|
|
|
|
file: peer.yml
|
|
|
|
service: peer
|
2017-02-08 15:45:46 +08:00
|
|
|
container_name: fabric-peer0
|
|
|
|
hostname: peer0
|
2017-01-04 14:54:05 +08:00
|
|
|
environment:
|
2017-02-08 15:45:46 +08:00
|
|
|
- CORE_PEER_ID=peer0
|
2017-01-04 14:54:05 +08:00
|
|
|
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
|
|
|
|
links:
|
2017-01-24 10:24:12 +08:00
|
|
|
- ca
|
2017-01-04 14:54:05 +08:00
|
|
|
- orderer
|
|
|
|
ports:
|
|
|
|
- 7051:7051
|
|
|
|
depends_on:
|
2017-01-24 10:24:12 +08:00
|
|
|
- ca
|
2017-01-04 14:54:05 +08:00
|
|
|
- orderer
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# default:
|
|
|
|
# external:
|
2017-01-24 10:24:12 +08:00
|
|
|
# name: hyperledger_fabric
|