This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
192 lines (174 loc) · 3.88 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
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
version: "3.9"
services:
gateway:
build:
context: .
dockerfile: gateway/Dockerfile
environment:
GATEWAY_PORT: 3000
GATEWAY_MONGO_URL: "mongodb://gatewaydata:27017/gateway"
JWT_SECRET: cVF9U3fQPqLMhB6ZjzWprDzrWUPggeDvnJxfWs8Sw754XUPc2L5fP4UuDPU4phRK
CQRS_API_KEY: YGWYP82xfFydatBb
TARGET_API_KEY: ggqpfZtSJHY4Vv8V
SUBMISSION_API_KEY: htNKcSc9BZHtYDgR
ports:
- "80:3000"
depends_on:
- gatewaydata
- cqrs
- mail
- submission
- tagger
- target
cqrs:
build:
context: .
dockerfile: cqrs/Dockerfile
environment:
CQRS_PORT: 3000
CQRS_MONGO_URL: "mongodb://cqrsdata:27017/cqrs"
JWT_SECRET: cVF9U3fQPqLMhB6ZjzWprDzrWUPggeDvnJxfWs8Sw754XUPc2L5fP4UuDPU4phRK
CQRS_API_KEY: YGWYP82xfFydatBb
expose:
- 3000
depends_on:
- cqrsdata
- rabbitmq
target:
build:
context: .
dockerfile: target/Dockerfile
environment:
TARGET_PORT: 3000
TARGET_MONGO_URL: "mongodb://targetdata:27017/target"
JWT_SECRET: cVF9U3fQPqLMhB6ZjzWprDzrWUPggeDvnJxfWs8Sw754XUPc2L5fP4UuDPU4phRK
TARGET_API_KEY: ggqpfZtSJHY4Vv8V
expose:
- 3000
depends_on:
- targetdata
- rabbitmq
submission:
build:
context: .
dockerfile: submission/Dockerfile
environment:
SUBMISSION_PORT: 3000
SUBMISSION_MONGO_URL: "mongodb://submissiondata:27017/submission"
JWT_SECRET: cVF9U3fQPqLMhB6ZjzWprDzrWUPggeDvnJxfWs8Sw754XUPc2L5fP4UuDPU4phRK
SUBMISSION_API_KEY: htNKcSc9BZHtYDgR
expose:
- 3000
depends_on:
- submissiondata
- rabbitmq
tagger:
build:
context: .
dockerfile: tagger/Dockerfile
environment:
TAGGER_MONGO_URL: "mongodb://taggerdata:27017/tagger"
depends_on:
- taggerdata
- rabbitmq
mail:
build:
context: .
dockerfile: mail/Dockerfile
environment:
MAIL_MONGO_URL: "mongodb://maildata:27017/mail"
SENDGRID_API_KEY: "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"
depends_on:
- maildata
- rabbitmq
gatewaydata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_gateway:/data/db
cqrsdata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_cqrs:/data/db
targetdata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_target:/data/db
submissiondata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_submission:/data/db
taggerdata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_tagger:/data/db
maildata:
image: mongo:latest
restart: always
expose:
- 27017
volumes:
- data_mail:/data/db
rabbitmq:
image: rabbitmq:latest
restart: always
expose:
- 5672
volumes:
- rabbitmq:/var/lib/rabbitmq
prometheus:
image: prom/prometheus:latest
restart: always
expose:
- 9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/rules.yml:/etc/prometheus/rules.yml
depends_on:
- gateway
- alertmanager
alertmanager:
image: prom/alertmanager:latest
restart: always
expose:
- 9093
volumes:
- ./prometheus/alertmanager.yml:/etc/alertmanager/alertmanager.yml
grafana:
build: ./grafana
restart: always
expose:
- 3000
depends_on:
- prometheus
dbexporter:
image: bitnami/mongodb-exporter:latest
restart: always
environment:
MONGODB_URI: "mongodb://gatewaydata:27017"
expose:
- 9216
depends_on:
- gatewaydata
volumes:
data_gateway:
data_cqrs:
data_target:
data_submission:
data_tagger:
data_mail:
rabbitmq: