mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
specify image version and CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE
Signed-off-by: wuqiaomin <wuqiaomin2@huawei.com>
This commit is contained in:
parent
5b8c4390db
commit
e7d7e1f2d2
5 changed files with 15 additions and 15 deletions
|
|
@ -15,7 +15,7 @@ volumes:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
peer-base:
|
peer-base:
|
||||||
image: hyperledger/fabric-peer:$IMAGE_TAG
|
image: hyperledger/fabric-peer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
|
|
@ -29,7 +29,7 @@ services:
|
||||||
|
|
||||||
orderer:
|
orderer:
|
||||||
container_name: irs-orderer
|
container_name: irs-orderer
|
||||||
image: hyperledger/fabric-orderer:$IMAGE_TAG
|
image: hyperledger/fabric-orderer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
||||||
|
|
@ -132,7 +132,7 @@ services:
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
container_name: cli
|
container_name: cli
|
||||||
image: hyperledger/fabric-tools:$IMAGE_TAG
|
image: hyperledger/fabric-tools:2.2.2
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
ca_org3:
|
ca_org3:
|
||||||
image: hyperledger/fabric-ca:$IMAGE_TAG
|
image: hyperledger/fabric-ca:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
||||||
- FABRIC_CA_SERVER_CA_NAME=ca-org3
|
- FABRIC_CA_SERVER_CA_NAME=ca-org3
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,14 @@ services:
|
||||||
|
|
||||||
peer0.org3.example.com:
|
peer0.org3.example.com:
|
||||||
container_name: peer0.org3.example.com
|
container_name: peer0.org3.example.com
|
||||||
image: hyperledger/fabric-peer:$IMAGE_TAG
|
image: hyperledger/fabric-peer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
#Generic peer variables
|
#Generic peer variables
|
||||||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
||||||
# the following setting starts chaincode containers on the same
|
# the following setting starts chaincode containers on the same
|
||||||
# bridge network as the peers
|
# bridge network as the peers
|
||||||
# https://docs.docker.com/compose/networking/
|
# https://docs.docker.com/compose/networking/
|
||||||
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
#- FABRIC_LOGGING_SPEC=DEBUG
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
||||||
- CORE_PEER_TLS_ENABLED=true
|
- CORE_PEER_TLS_ENABLED=true
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ networks:
|
||||||
services:
|
services:
|
||||||
|
|
||||||
ca_org1:
|
ca_org1:
|
||||||
image: hyperledger/fabric-ca:$IMAGE_TAG
|
image: hyperledger/fabric-ca:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
||||||
- FABRIC_CA_SERVER_CA_NAME=ca-org1
|
- FABRIC_CA_SERVER_CA_NAME=ca-org1
|
||||||
|
|
@ -27,7 +27,7 @@ services:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
ca_org2:
|
ca_org2:
|
||||||
image: hyperledger/fabric-ca:$IMAGE_TAG
|
image: hyperledger/fabric-ca:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
||||||
- FABRIC_CA_SERVER_CA_NAME=ca-org2
|
- FABRIC_CA_SERVER_CA_NAME=ca-org2
|
||||||
|
|
@ -43,7 +43,7 @@ services:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
ca_orderer:
|
ca_orderer:
|
||||||
image: hyperledger/fabric-ca:$IMAGE_TAG
|
image: hyperledger/fabric-ca:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
||||||
- FABRIC_CA_SERVER_CA_NAME=ca-orderer
|
- FABRIC_CA_SERVER_CA_NAME=ca-orderer
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ services:
|
||||||
|
|
||||||
orderer.example.com:
|
orderer.example.com:
|
||||||
container_name: orderer.example.com
|
container_name: orderer.example.com
|
||||||
image: hyperledger/fabric-orderer:$IMAGE_TAG
|
image: hyperledger/fabric-orderer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
||||||
|
|
@ -50,14 +50,14 @@ services:
|
||||||
|
|
||||||
peer0.org1.example.com:
|
peer0.org1.example.com:
|
||||||
container_name: peer0.org1.example.com
|
container_name: peer0.org1.example.com
|
||||||
image: hyperledger/fabric-peer:$IMAGE_TAG
|
image: hyperledger/fabric-peer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
#Generic peer variables
|
#Generic peer variables
|
||||||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
||||||
# the following setting starts chaincode containers on the same
|
# the following setting starts chaincode containers on the same
|
||||||
# bridge network as the peers
|
# bridge network as the peers
|
||||||
# https://docs.docker.com/compose/networking/
|
# https://docs.docker.com/compose/networking/
|
||||||
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
#- FABRIC_LOGGING_SPEC=DEBUG
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
||||||
- CORE_PEER_TLS_ENABLED=true
|
- CORE_PEER_TLS_ENABLED=true
|
||||||
|
|
@ -88,14 +88,14 @@ services:
|
||||||
|
|
||||||
peer0.org2.example.com:
|
peer0.org2.example.com:
|
||||||
container_name: peer0.org2.example.com
|
container_name: peer0.org2.example.com
|
||||||
image: hyperledger/fabric-peer:$IMAGE_TAG
|
image: hyperledger/fabric-peer:2.2.2
|
||||||
environment:
|
environment:
|
||||||
#Generic peer variables
|
#Generic peer variables
|
||||||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
||||||
# the following setting starts chaincode containers on the same
|
# the following setting starts chaincode containers on the same
|
||||||
# bridge network as the peers
|
# bridge network as the peers
|
||||||
# https://docs.docker.com/compose/networking/
|
# https://docs.docker.com/compose/networking/
|
||||||
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
|
||||||
- FABRIC_LOGGING_SPEC=INFO
|
- FABRIC_LOGGING_SPEC=INFO
|
||||||
#- FABRIC_LOGGING_SPEC=DEBUG
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
||||||
- CORE_PEER_TLS_ENABLED=true
|
- CORE_PEER_TLS_ENABLED=true
|
||||||
|
|
@ -126,7 +126,7 @@ services:
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
container_name: cli
|
container_name: cli
|
||||||
image: hyperledger/fabric-tools:$IMAGE_TAG
|
image: hyperledger/fabric-tools:2.2.2
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue