-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose-with-raft.yaml
171 lines (155 loc) · 5.31 KB
/
compose-with-raft.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Copyright IBM Corp. All Rights Reserved.
# Modifications by kehm
#
# SPDX-License-Identifier: Apache-2.0
#
# Docker configuration with Raft ordering service
#
version: '2'
volumes:
ca.hospital1.example.com:
ca.pharmacy1.example.com:
ca.practitioner1.example.com:
orderer0.hospital1.example.com:
orderer0.pharmacy1.example.com:
orderer0.practitioner1.example.com:
peer0.hospital1.example.com:
peer1.hospital1.example.com:
peer0.pharmacy1.example.com:
peer1.pharmacy1.example.com:
peer0.practitioner1.example.com:
peer1.practitioner1.example.com:
networks:
ehrnetwork:
ipam:
config:
- subnet: 172.18.0.0/24
services:
ca.hospital1.example.com:
extends:
file: base/compose-base.yaml
service: ca.hospital1.example.com
container_name: ca.hospital1.example.com
networks:
- ehrnetwork
ca.pharmacy1.example.com:
extends:
file: base/compose-base.yaml
service: ca.pharmacy1.example.com
container_name: ca.pharmacy1.example.com
networks:
- ehrnetwork
ca.practitioner1.example.com:
extends:
file: base/compose-base.yaml
service: ca.practitioner1.example.com
container_name: ca.practitioner1.example.com
networks:
- ehrnetwork
orderer0.hospital1.example.com:
extends:
file: base/compose-base.yaml
service: orderer0.hospital1.example.com
container_name: orderer0.hospital1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.100
orderer0.pharmacy1.example.com:
extends:
file: base/compose-base.yaml
service: orderer0.pharmacy1.example.com
container_name: orderer0.pharmacy1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.110
orderer0.practitioner1.example.com:
extends:
file: base/compose-base.yaml
service: orderer0.practitioner1.example.com
container_name: orderer0.practitioner1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.120
peer0.hospital1.example.com:
container_name: peer0.hospital1.example.com
extends:
file: base/compose-base.yaml
service: peer0.hospital1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.40
peer1.hospital1.example.com:
container_name: peer1.hospital1.example.com
extends:
file: base/compose-base.yaml
service: peer1.hospital1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.50
peer0.pharmacy1.example.com:
container_name: peer0.pharmacy1.example.com
extends:
file: base/compose-base.yaml
service: peer0.pharmacy1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.60
peer1.pharmacy1.example.com:
container_name: peer1.pharmacy1.example.com
extends:
file: base/compose-base.yaml
service: peer1.pharmacy1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.70
peer0.practitioner1.example.com:
container_name: peer0.practitioner1.example.com
extends:
file: base/compose-base.yaml
service: peer0.practitioner1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.80
peer1.practitioner1.example.com:
container_name: peer1.practitioner1.example.com
extends:
file: base/compose-base.yaml
service: peer1.practitioner1.example.com
networks:
ehrnetwork:
ipv4_address: 172.18.0.90
cli0:
container_name: cli0
image: hyperledger/fabric-tools
tty: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=DEBUG
- CORE_PEER_ID=cli0
- CORE_PEER_ADDRESS=peer0.hospital1.example.com:7051
- CORE_PEER_LOCALMSPID=Hospital1MSP
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/hospital1.example.com/peers/peer0.hospital1.example.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/hospital1.example.com/peers/peer0.hospital1.example.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/hospital1.example.com/peers/peer0.hospital1.example.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/hospital1.example.com/users/Admin@hospital1.example.com/msp
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
volumes:
- /var/run/:/host/var/run/
- ./chaincode/:/opt/gopath/src/github.com/chaincode
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
#- ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
- ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts
networks:
- ehrnetwork
depends_on:
- orderer0.hospital1.example.com
- orderer0.pharmacy1.example.com
- orderer0.practitioner1.example.com
- peer0.practitioner1.example.com
- peer1.practitioner1.example.com
- peer0.pharmacy1.example.com
- peer1.pharmacy1.example.com
- peer0.hospital1.example.com
- peer1.hospital1.example.com