docker-compose-files/hyperledger/1.0/docker-compose-base.yaml

106 lines
3.9 KiB
YAML
Raw Normal View History

2017-06-07 15:53:15 +08:00
# Base compose files for:
# orderer.example.com
# peer0.org1.example.com
# peer1.org1.example.com
# peer0.org2.example.com
# peer1.org2.example.com
version: '2' # v3 does not support 'extends' yet
2017-05-12 17:56:11 +08:00
services:
orderer.example.com: # There can be multiple orderers
2017-06-07 15:53:15 +08:00
extends:
file: orderer-base.yaml
service: orderer-base
2017-05-12 17:56:11 +08:00
container_name: orderer.example.com
hostname: orderer.example.com
ports:
- "7050:7050"
volumes:
2017-06-07 15:53:15 +08:00
- ./e2e_cli/channel-artifacts/orderer.genesis.block:/var/hyperledger/orderer/orderer.genesis.block
2017-05-12 17:56:11 +08:00
- ./e2e_cli/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp
- ./e2e_cli/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls
2017-06-07 15:53:15 +08:00
command: orderer start
2017-05-12 17:56:11 +08:00
peer0.org1.example.com:
extends:
2017-06-07 15:53:15 +08:00
file: peer-base.yaml
service: peer-base
2017-05-12 17:56:11 +08:00
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_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
volumes:
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
2017-06-07 15:53:15 +08:00
ports:
- 7051:7051
- 7053:7053
command: peer node start
2017-05-12 17:56:11 +08:00
peer1.org1.example.com:
extends:
2017-06-07 15:53:15 +08:00
file: peer-base.yaml
service: peer-base
2017-05-12 17:56:11 +08:00
container_name: peer1.org1.example.com
hostname: peer1.org1.example.com
environment:
- CORE_PEER_ID=peer1.org1.example.com
- CORE_PEER_ADDRESS=peer1.org1.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
volumes:
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls
2017-06-07 15:53:15 +08:00
ports:
- 8051:7051
- 8053:7053
command: peer node start
2017-05-12 17:56:11 +08:00
peer0.org2.example.com:
extends:
2017-06-07 15:53:15 +08:00
file: peer-base.yaml
service: peer-base
2017-05-12 17:56:11 +08:00
container_name: peer0.org2.example.com
hostname: peer0.org2.example.com
environment:
- CORE_PEER_ID=peer0.org2.example.com
- CORE_PEER_ADDRESS=peer0.org2.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:7051
- CORE_PEER_LOCALMSPID=Org2MSP
volumes:
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls:/etc/hyperledger/fabric/tls
2017-06-07 15:53:15 +08:00
ports:
- 9051:7051
- 9053:7053
command: peer node start
2017-05-12 17:56:11 +08:00
peer1.org2.example.com:
extends:
2017-06-07 15:53:15 +08:00
file: peer-base.yaml
service: peer-base
2017-05-12 17:56:11 +08:00
container_name: peer1.org2.example.com
hostname: peer1.org2.example.com
environment:
- CORE_PEER_ID=peer1.org2.example.com
- CORE_PEER_ADDRESS=peer1.org2.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051
- CORE_PEER_LOCALMSPID=Org2MSP
volumes:
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/msp:/etc/hyperledger/fabric/msp
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls:/etc/hyperledger/fabric/tls
2017-06-07 15:53:15 +08:00
ports:
- 10051:7051
- 10053:7053
command: peer node start