Skip to content

Instantly share code, notes, and snippets.

@sharif2008
Forked from kctam/docker-compose-orderer.yml
Created September 23, 2019 06:19
Show Gist options
  • Save sharif2008/f9225557b86c4724f187071b146ce89c to your computer and use it in GitHub Desktop.
Save sharif2008/f9225557b86c4724f187071b146ce89c to your computer and use it in GitHub Desktop.
3node2channel setup
version: '2'
networks:
fabric:
services:
orderer.example.com:
extends:
file: docker-compose-base.yml
service: orderer
container_name: orderer.example.com
environment:
- ORDERER_HOST=orderer.example.com
extra_hosts:
- "peer0.org1.example.com:172.31.58.209"
- "peer0.org2.example.com:172.31.51.44"
- "peer0.org3.example.com:172.31.53.42"
volumes:
- ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/msp
- ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls:/var/hyperledger/tls
- ../channel-artifacts/:/var/hyperledger/configs
networks:
fabric:
aliases:
- net
ports:
- 7050:7050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment