-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
136 lines (116 loc) · 2.85 KB
/
docker-compose.yml
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
version: '3.3'
services:
#indypool should be created beforehand, with schemas and credentials issued for user auth
# indypool:
# network_mode: host
# image: "teamblockchain/indy-pool:1.7.0"
# ports:
# - "9701-9708:9701-9708"
# container_name: indypool
# -------------------- Corda nodes -----------------------
tccorda:
network_mode: host
build:
context: ./build/nodes/SEEHOF
dockerfile: Dockerfile-corda
ports:
- "10101:10101"
- "10102:10102"
- "10103:10103"
container_name: tccorda
environment:
- RUST_LOG=trace
deploy:
resources:
limits:
memory: 500m
mfcorda:
network_mode: host
build:
context: ./build/nodes/PharmaOne
dockerfile: Dockerfile-corda
ports:
- "10001:10001"
- "10002:10002"
- "10003:10003"
container_name: mfcorda
environment:
- RUST_LOG=trace
deploy:
resources:
limits:
memory: 500m
notary:
network_mode: host
build:
context: ./build/nodes/Notary
dockerfile: Dockerfile-corda
ports:
- "10701:10701"
- "10702:10702"
- "10703:10703"
container_name: notary
deploy:
resources:
limits:
memory: 500m
# -------------------- Spring nodes -----------------------
mfweb:
network_mode: host
build:
context: ./webapp
dockerfile: Dockerfile-web
ports:
- "8081:8081"
environment:
- "SPRING_PROFILES_ACTIVE=manufacture"
container_name: mfweb
deploy:
resources:
limits:
memory: 50m
tcweb:
network_mode: host
build:
context: ./webapp
dockerfile: Dockerfile-web
ports:
- "8082:8082"
environment:
- "SPRING_PROFILES_ACTIVE=treatmentcenter"
container_name: tcweb
deploy:
resources:
limits:
memory: 50m
# -------------------- Indy agents -----------------------
agent94:
image: teamblockchain/indy-agent-python:eee0475e1ac3417990a4ec55164b1a32eb3bd6d5
ports:
- "8094:8094"
environment:
- "PORT=8094"
container_name: agent94
agent95:
image: teamblockchain/indy-agent-python:eee0475e1ac3417990a4ec55164b1a32eb3bd6d5
ports:
- "8095:8095"
environment:
- "PORT=8095"
container_name: agent95
agent96:
image: teamblockchain/indy-agent-python:eee0475e1ac3417990a4ec55164b1a32eb3bd6d5
ports:
- "8096:8096"
environment:
- "PORT=8096"
container_name: agent96
agentInitiator:
network_mode: host
image: alpine:3.6
container_name: agentInitiator
depends_on:
- agent94
- agent95
- agent96
command: sh -c 'sleep 10; /usr/bin/wget --spider http://localhost:8094/; /usr/bin/wget --spider http://localhost:8095/; /usr/bin/wget --spider http://localhost:8096/'