-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmultihost.yaml
executable file
·53 lines (45 loc) · 2.37 KB
/
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
46
47
48
49
50
51
52
53
#
# Copyright . All Rights Reserved.
#
version: '3.7'
services:
ca:
volumes:
- ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/ca/:/etc/hyperledger/fabric-ca-server-config
- ${WORK_DIR-/home/docker}/crypto-config/fabric-ca-server-config-${ORG:-org1}.yaml:/etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml
peer0:
volumes:
- ${WORK_DIR-/home/docker}/hosts:/etc/hosts
- ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/peers/peer0.${ORG:-org1}.${DOMAIN:-example.com}/:/etc/hyperledger/crypto/peer
ports:
- ${PEER0_PORT:-7051}:7051
cli.peer:
volumes:
- ${WORK_DIR-/home/docker}/hosts:/etc/hosts
- ${WORK_DIR-/home/docker}/chaincode:/opt/chaincode
- ${WORK_DIR-/home/docker}/chaincode/go:/opt/gopath/src
- ${WORK_DIR-/home/docker}/crypto-config:/etc/hyperledger/crypto-config
- ${WORK_DIR-/home/docker}/templates:/etc/hyperledger/templates
- ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/users/Admin@${ORG:-org1}.${DOMAIN:-example.com}:/etc/hyperledger/crypto/peeradmin
- ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/peers/peer0.${ORG:-org1}.${DOMAIN:-example.com}:/etc/hyperledger/crypto/peer
# - ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/peers/peer1.${ORG:-org1}.${DOMAIN:-example.com}:/etc/hyperledger/crypto/peer1
- ${WORK_DIR-/home/docker}/crypto-config/ordererOrganizations/${DOMAIN:-example.com}/msp:/etc/hyperledger/crypto/orderer
# fabric-rest api server
api:
# environment:
# - P=${WORK_DIR-/home/docker}
volumes:
- ${WORK_DIR-/home/docker}/hosts:/etc/hosts
- ${WORK_DIR-/home/docker}/crypto-config:/usr/src/app/crypto-config
- ${WORK_DIR-/home/docker}/webapp:/usr/src/app/webapp
# simple http server to disseminate certificates
www.peer:
volumes:
- ${WORK_DIR-/home/docker}/crypto-config/peerOrganizations/${ORG:-org1}.${DOMAIN:-example.com}/msp:/usr/share/nginx/html/msp
- ${WORK_DIR-/home/docker}/crypto-config/configtx:/usr/share/nginx/html/configtx
ports:
- ${WWW_PORT:-80}:80
networks:
default:
external: false
name: ${DEFAULT_NETWORK_NAME:-fabric-starter}_default