forked from olegabu/fabric-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderer-multihost.yaml
41 lines (33 loc) · 1.62 KB
/
orderer-multihost.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Copyright . All Rights Reserved.
#
version: '3.7'
services:
pre-install:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config:/etc/hyperledger/crypto-config
post-install:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config/hosts_orderer:/etc/hosts
- ${WORK_DIR:-/home/docker}/crypto-config:/etc/hyperledger/crypto-config
# - ${WORK_DIR:-/home/docker}/container-scripts:/etc/hyperledger/container-scripts # for local debug
orderer:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config/hosts_orderer:/etc/hosts
- ${WORK_DIR:-/home/docker}/crypto-config/configtx:/etc/hyperledger/configtx
- ${WORK_DIR:-/home/docker}/crypto-config/ordererOrganizations/${DOMAIN:-example.com}/orderers/orderer.${DOMAIN:-example.com}/:/etc/hyperledger/crypto/orderer
ports:
- ${ORDERER_PORT:-7050}:7050
cli.orderer:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config/hosts_orderer:/etc/hosts
- ${WORK_DIR:-/home/docker}/crypto-config:/etc/hyperledger/crypto-config
# - ${WORK_DIR:-/home/docker}/templates:/etc/hyperledger/templates
- ${WORK_DIR:-/home/docker}/crypto-config/ordererOrganizations/${DOMAIN:-example.com}/orderers/orderer.${DOMAIN:-example.com}:/etc/hyperledger/crypto/orderer
- ${WORK_DIR:-/home/docker}/crypto-config/ordererOrganizations/${DOMAIN:-example.com}/users/Admin@${DOMAIN:-example.com}:/etc/hyperledger/crypto/ordereradmin
# http serves certificates
www.orderer:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config/ordererOrganizations/${DOMAIN:-example.com}/msp:/usr/share/nginx/html/msp
ports:
- ${WWW_PORT:-80}:80