docker-compose-files/hyperledger/compose-defaults.yml

30 lines
1.0 KiB
YAML
Raw Normal View History

2016-04-15 16:45:57 +08:00
# This is the default base file to config env and command
# Notice that chaincode is executed inside docker in default net mode
# https://github.com/yeasy/docker-compose-files
# Depends on the yeasy/hyperledger-peer:pbft image
2016-04-28 09:57:29 +08:00
2016-05-06 16:11:14 +08:00
# This utilized the pbft as consensus
2016-04-20 11:07:30 +08:00
# See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
2016-04-20 14:58:38 +08:00
2016-04-15 16:45:57 +08:00
vp:
image: yeasy/hyperledger-peer:pbft
2016-04-15 16:45:57 +08:00
restart: unless-stopped
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
2016-04-18 14:19:35 +08:00
- CORE_PEER_NETWORKID=dev
2016-04-20 14:58:38 +08:00
- CORE_LOGGING_LEVEL=debug #critical, error, warning, notice, info, debug
# The following section enables pbft consensus
2016-05-09 10:44:16 +08:00
- CORE_PEER_VALIDATOR_CONSENSUS_PLUGIN=pbft # noops, pbft
2016-04-20 14:58:38 +08:00
- CORE_PBFT_GENERAL_MODE=classic # batch, classic, sieve
- CORE_PBFT_GENERAL_N=4
- CORE_PBFT_GENERAL_TIMEOUT_REQUEST=10s
2016-04-15 16:45:57 +08:00
expose:
2016-04-20 14:58:38 +08:00
- "30303"
- "30304"
- "31315"
2016-04-15 16:45:57 +08:00
volumes: # docker.sock is mapped as the default CORE_VM_ENDPOINT
- /var/run/docker.sock:/var/run/docker.sock
2016-04-21 15:18:30 +08:00
command: peer peer
2016-04-15 16:45:57 +08:00