forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-composeRIL.yml
243 lines (223 loc) · 5.15 KB
/
docker-composeRIL.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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
version: "3.8"
services:
mongo:
image: mongo:6.0.3
command: "--setParameter allowDiskUseByDefault=true"
restart: always
expose:
- 27017
ports:
- "27017:27017"
mongo-express:
image: mongo-express:1.0.0-alpha.4
expose:
- 8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_SITE_BASEURL: /mongo-admin
depends_on:
- mongo
cache:
image: registry.redict.io/redict
restart: always
expose:
- 6379
ports:
- "6379:6379"
ipfs-node:
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "4001:4001"
- "8080:8080"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
message-broker:
image: nats:2.9.8
expose:
- 4222
ports:
- '8222:8222'
command: '--http_port 8222'
vault:
image: vault:1.12.2
expose:
- 8200
ports:
- '8200:8200'
environment:
VAULT_SERVER: "http://0.0.0.0:8200"
VAULT_DEV_ROOT_TOKEN_ID: "1234"
cap_add:
- IPC_LOCK
volumes:
- ./file:/vault/file:rw
- ./config:/vault/config:rw
# https://docs.docker.com/compose/environment-variables/envvars-precedence/
# Environment leverage the gerarchy defined in the docker compose between "env_file" and "environment" attributes
# ecosystem variables defined in the "env_file" .env.${GUARDIAN_ENV}.guardian.system
# specific service variables defined by "environment" can override what is defined in the ecosystem file
logger-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./logger-service/Dockerfile
depends_on:
- message-broker
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
notification-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./notification-service/Dockerfile
depends_on:
- message-broker
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
worker-service-1:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
- SERVICE_CHANNEL:"worker.1"
expose:
- 6555
worker-service-2:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
- SERVICE_CHANNEL="worker.2"
expose:
- 6555
auth-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./auth-service/Dockerfile
depends_on:
- mongo
- vault
- message-broker
- logger-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
expose:
- 6555
api-gateway:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./api-gateway/Dockerfile
expose:
- 3002
- 6555
depends_on:
- mongo
- cache
- message-broker
- guardian-service
- auth-service
- logger-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
policy-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./policy-service/Dockerfile
depends_on:
- mongo
- message-broker
- auth-service
- logger-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
expose:
- 50000-60000
guardian-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
build:
context: .
dockerfile: ./guardian-service/Dockerfile
depends_on:
- mongo
- message-broker
- auth-service
- logger-service
- worker-service-1
- worker-service-2
- policy-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
expose:
- 6555
# application-events:
# build:
# context: .
# dockerfile: application-events/Dockerfile
# expose:
# - 3012
# ports:
# - "3012:3012"
# depends_on:
# - mongo
# - message-broker
# - guardian-service
# - auth-service
# - logger-service
mrv-sender:
build:
context: .
dockerfile: ./mrv-sender/Dockerfile
expose:
- 3005
topic-viewer:
build:
context: .
dockerfile: ./topic-viewer/Dockerfile
expose:
- 3006
web-proxy:
build:
context: .
dockerfile: ./web-proxy/Dockerfile
ports:
- "3000:80"
depends_on:
- guardian-service
- auth-service
- api-gateway
- mrv-sender
- mongo-express
volumes:
mongo:
# volume-guardian-service:
# volume-ui-service:
# volume-mrv-sender:
# volume-message-broker: