mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
Use a core set of compose files, with overlays for specific details. In the case of podman, the overlays refer to a specific core.yaml for the peer that distables the use of teh docker daemon In the case of docker, the overlays add enable the docker daemon accesss for the peer to create chaincode containers Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '3.7'
|
|
services:
|
|
peer0.org1.example.com:
|
|
container_name: peer0.org1.example.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
#Generic peer variables
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
|
|
volumes:
|
|
- ./docker/peercfg:/etc/hyperledger/peercfg
|
|
- ${DOCKER_SOCK}:/host/var/run/docker.sock
|
|
|
|
peer0.org2.example.com:
|
|
container_name: peer0.org2.example.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
#Generic peer variables
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
|
|
volumes:
|
|
- ./docker/peercfg:/etc/hyperledger/peercfg
|
|
- ${DOCKER_SOCK}:/host/var/run/docker.sock
|
|
|
|
cli:
|
|
container_name: cli
|
|
image: hyperledger/fabric-tools:latest
|
|
volumes:
|
|
- ./docker/peercfg:/etc/hyperledger/peercfg
|