-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
328 lines (300 loc) · 8.31 KB
/
docker-compose.yml
File metadata and controls
328 lines (300 loc) · 8.31 KB
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# This file is linted and formatted using Docker Compose Linter (https://github.com/zavoloklom/docker-compose-linter):
# npx dclint . --fix=true
# Please note variables defined in the "environment" section will override the same variables defined in the "env_file"
# See # https://docs.docker.com/compose/environment-variables/envvars-precedence/ for more details
# YAML anchor that contains common configuration elements for our services
x-service-template: &service-template
init: true
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
environment:
GUARDIAN_ENV: ${GUARDIAN_ENV}
name: guardian-demo
services:
ai-service:
image: gcr.io/hedera-registry/ai-service:${GUARDIAN_VERSION:-latest}
depends_on:
- logger-service
- message-broker
- mongo
volumes:
- ./ai-service/faiss-vector:/usr/local/app/faiss-vector:rw
- ./ai-service/data:/usr/local/app/data:rw
environment:
VECTOR_STORAGE_PATH: ./faiss-vector
DOCS_STORAGE_PATH: ./data/generated-data
<<: *service-template
expose:
- '3013'
api-gateway:
image: gcr.io/hedera-registry/api-gateway-demo:${GUARDIAN_VERSION:-latest}
depends_on:
- auth-service
- cache
- guardian-service
- logger-service
- message-broker
- mongo
# - seq
volumes:
- ./api-gateway/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '3002'
- '6555'
application-events:
image: gcr.io/hedera-registry/application-events:${GUARDIAN_VERSION:-latest}
depends_on:
- auth-service
- guardian-service
- logger-service
- message-broker
- mongo
<<: *service-template
expose:
- '3012'
auth-service:
image: gcr.io/hedera-registry/auth-service-demo:${GUARDIAN_VERSION:-latest}
depends_on:
- logger-service
- message-broker
- mongo
- vault
volumes:
- ./auth-service/tls:/usr/local/app/tls:ro
- ./auth-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
- '5005'
cache:
image: registry.redict.io/redict:7.3.6-alpine
restart: always
expose:
- '6379'
init: true
grafana:
image: grafana/grafana:10.0.10
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/etc/grafana/dashboards
environment:
GF_AUTH_DISABLE_LOGIN_FORM: true
GF_AUTH_ANONYMOUS_ENABLED: true
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_SERVER_HTTP_PORT: 9080
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /etc/grafana/dashboards/prometheus-dashboard.json
ports:
- '127.0.0.1:9080:9080'
networks:
- monitoring
init: true
guardian-service:
image: gcr.io/hedera-registry/guardian-service:${GUARDIAN_VERSION:-latest}
depends_on:
- auth-service
- logger-service
- message-broker
- mongo
- policy-service
- worker-service
volumes:
- ./guardian-service/tls:/usr/local/app/tls:ro
- ./guardian-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
- '5007'
ipfs-node:
image: ipfs/kubo:v0.39.0
volumes:
- ipfs_data:/data/ipfs:rw
- ipfs_export:/export:rw
environment:
IPFS_TELEMETRY: off # valid options: 'on' (default), 'off', 'auto' (https://github.com/ipfs/kubo/blob/master/docs/telemetry.md)
ports:
- '127.0.0.1:4001:4001'
- '127.0.0.1:5001:5001'
- '127.0.0.1:8080:8080'
init: true
logger-service:
image: gcr.io/hedera-registry/logger-service:${GUARDIAN_VERSION:-latest}
depends_on:
- message-broker
volumes:
- ./logger-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
message-broker:
image: nats:2.9.25
volumes:
- ./configs/nats.conf:/etc/nats/nats.conf
ports:
- '127.0.0.1:8222:8222'
command: "-c /etc/nats/nats.conf --http_port 8222"
expose:
- '4222'
init: true
mongo:
image: mongo:6.0.26
command: "--setParameter allowDiskUseByDefault=true"
# command: "--setParameter allowDiskUseByDefault=true --quiet --logpath /dev/null" # use this command to reduce log noise
restart: always
expose:
- '27017'
init: true
mongo-express:
image: mongo-express:1.0.2-20
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017
ME_CONFIG_SITE_BASEURL: /mongo-admin
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: pass
expose:
- '8081'
init: true
mrv-sender:
image: gcr.io/hedera-registry/mrv-sender:${GUARDIAN_VERSION:-latest}
expose:
- '3005'
- '5008'
init: true
notification-service:
image: gcr.io/hedera-registry/notification-service:${GUARDIAN_VERSION:-latest}
depends_on:
- message-broker
volumes:
- ./notification-service/configs:/usr/local/app/configs:ro
<<: *service-template
policy-service:
image: gcr.io/hedera-registry/policy-service:${GUARDIAN_VERSION:-latest}
depends_on:
- auth-service
- logger-service
- message-broker
- mongo
volumes:
- ./policy-service/tls:/usr/local/app/tls:ro
- ./policy-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '5006'
prometheus:
image: prom/prometheus:v2.44.0
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- '127.0.0.1:9090:9090'
networks:
- monitoring
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
- "--web.enable-lifecycle"
restart: unless-stopped
init: true
queue-service:
image: gcr.io/hedera-registry/queue-service:${GUARDIAN_VERSION:-latest}
depends_on:
- logger-service
- message-broker
- mongo
volumes:
- ./queue-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
# seq:
# image: datalust/seq:2025.2
# volumes:
# - seq_data:/data
# environment:
# ACCEPT_EULA: "Y"
# SEQ_FIRSTRUN_NOAUTHENTICATION: "true"
# ports:
# - '127.0.0.1:5341:80'
# restart: unless-stopped
# init: true
topic-listener-service:
image: gcr.io/hedera-registry/topic-listener-service:${GUARDIAN_VERSION:-latest}
depends_on:
- message-broker
- mongo
- queue-service
volumes:
- ./topic-listener-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
topic-viewer:
image: gcr.io/hedera-registry/topic-viewer:${GUARDIAN_VERSION:-latest}
expose:
- '3006'
- '5009'
init: true
vault:
image: hashicorp/vault:1.12.11
volumes:
- ./file:/vault/file:rw
- ./config:/vault/config:rw
environment:
VAULT_SERVER: "http://0.0.0.0:8200"
VAULT_DEV_ROOT_TOKEN_ID: "hVt34rnXcHnxp520LHYK"
ports:
- '127.0.0.1:8200:8200'
cap_add:
- IPC_LOCK
expose:
- '8200'
init: true
web-proxy:
image: gcr.io/hedera-registry/frontend-demo:${GUARDIAN_VERSION:-latest}
depends_on:
- api-gateway
- auth-service
- guardian-service
- mrv-sender
environment:
GATEWAY_CLIENT_MAX_BODY_SIZE: 1024m
GATEWAY_HOST: api-gateway
GATEWAY_PORT: 3002
MRV_SENDER_HOST: mrv-sender
MRV_SENDER_PORT: 3005
TOPIC_VIEWER_HOST: topic-viewer
TOPIC_VIEWER_PORT: 3006
ports:
- '127.0.0.1:3000:80'
init: true
worker-service:
image: gcr.io/hedera-registry/worker-service:${GUARDIAN_VERSION:-latest}
depends_on:
auth-service:
condition: service_started
ipfs-node:
condition: service_healthy
queue-service:
condition: service_started
volumes:
- ./worker-service/tls:/usr/local/app/tls:ro
- ./worker-service/configs:/usr/local/app/configs:ro
<<: *service-template
deploy:
replicas: 2
expose:
- '6555'
networks:
monitoring:
driver: bridge
volumes:
# seq_data:
prometheus_data:
grafana_data:
ipfs_data:
ipfs_export: