forked from olegabu/fabric-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-orderer-multihost.yaml
45 lines (36 loc) · 1.99 KB
/
docker-compose-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
42
43
44
45
#
# Copyright . All Rights Reserved.
#
version: '3.7'
services:
pre-install:
volumes:
- ${WORK_DIR:-/home/docker}/crypto-config:/etc/hyperledger/crypto-config
# - ${WORK_DIR:-/home/docker}/container-scripts:/etc/hyperledger/container-scripts # for local debug
# - ${WORK_DIR:-/home/docker}/templates:/etc/hyperledger/templates # for local debug
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/:/etc/hyperledger/crypto/orderer
ports:
- ${ORDERER_GENERAL_LISTENPORT:-7050}:${ORDERER_GENERAL_LISTENPORT:-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}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/orderers/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}:/etc/hyperledger/crypto/orderer
- ${WORK_DIR:-/home/docker}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/users/Admin@${ORDERER_DOMAIN:-example.com}:/etc/hyperledger/crypto/ordereradmin
# - ${WORK_DIR:-/home/docker}/templates:/etc/hyperledger/templates # for local debug
# - ${WORK_DIR:-/home/docker}/container-scripts:/etc/hyperledger/container-scripts # for local debug
# 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