-
Notifications
You must be signed in to change notification settings - Fork 184
/
docker-compose-orderer-domain.yaml
55 lines (43 loc) · 3.09 KB
/
docker-compose-orderer-domain.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
46
47
48
49
50
51
52
53
54
55
#
# Copyright . All Rights Reserved.
#
version: '3.7'
volumes:
orderer:
services:
pre-install:
container_name: pre-install.${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
volumes:
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN}/msp/.well-known:/etc/hyperledger/crypto-config/ordererOrganizations/${ORDERER_DOMAIN}/msp/.well-known
post-install:
container_name: post-install.${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
orderer:
container_name: ${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
environment:
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/${ORDERER_DOMAIN:-example.com}/genesis.pb
- ORDERER_GENERAL_LOCALMSPID=${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/msp
- ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/ca.crt]
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/etc/hyperledger/crypto/orderer/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}/tls/ca.crt]
volumes:
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/orderers/:/etc/hyperledger/crypto/orderer
cli.orderer:
container_name: cli.${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
environment:
- ORDERER_GENERAL_LOCALMSPID=${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}
- CORE_PEER_LOCALMSPID=orderer.${ORDERER_DOMAIN:-example.com}
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/${ORDERER_DOMAIN:-example.com}/genesis.pb
- ORDERER_NAME=${ORDERER_NAME:-orderer}
- ORDERER_DOMAIN
volumes:
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/orderers/${ORDERER_NAME:-orderer}.${ORDERER_DOMAIN:-example.com}:/etc/hyperledger/crypto/orderer
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/users/Admin@${ORDERER_DOMAIN:-example.com}:/etc/hyperledger/crypto/ordereradmin
www.orderer:
container_name: www.${ORDERER_DOMAIN:-example.com}
volumes:
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/msp:/usr/share/nginx/html/msp:ro
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ordererOrganizations/${ORDERER_DOMAIN:-example.com}/msp/.well-known:/usr/share/nginx/html/.well-known:ro