-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathdocker-compose-analytics.yml
More file actions
99 lines (89 loc) · 2.74 KB
/
docker-compose-analytics.yml
File metadata and controls
99 lines (89 loc) · 2.74 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
# 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-analytics
services:
analytics-service:
image: gcr.io/hedera-registry/analytics-service:${GUARDIAN_VERSION:-latest}
depends_on:
- message-broker
- queue-service
volumes:
- ./analytics-service/configs:/usr/local/app/configs:ro
ports:
- '127.0.0.1:3000:3020'
<<: *service-template
expose:
- '6555'
auth-service:
image: gcr.io/hedera-registry/auth-service:${GUARDIAN_VERSION:-latest}
depends_on:
- logger-service
- message-broker
- mongo
volumes:
- ./auth-service/tls:/usr/local/app/tls:ro
- ./auth-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
- '5005'
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
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
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'
worker-service:
image: gcr.io/hedera-registry/worker-service:${GUARDIAN_VERSION:-latest}
depends_on:
auth-service:
condition: service_started
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: 10
expose:
- '6555'