-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
248 lines (232 loc) · 6.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
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
version: '3.4'
services:
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.1
ports:
- 9200:9200
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
networks:
- elastic
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.16.1
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_URL=http://localhost:9200
networks:
- elastic
jaeger-collector:
container_name: jaeger-collector
image: jaegertracing/jaeger-collector
ports:
- "14269:14269"
- "14268:14268"
- "14267:14267"
- "14250:14250"
- "9411:9411"
networks:
- elastic
restart: on-failure
environment:
- SPAN_STORAGE_TYPE=elasticsearch
command: [
"--es.server-urls=http://elasticsearch:9200",
"--es.num-shards=1",
"--es.num-replicas=0",
"--log-level=error"
]
depends_on:
- elasticsearch
jaeger-agent:
container_name: jaeger-agent
image: jaegertracing/jaeger-agent
hostname: jaeger-agent
command: ["--reporter.grpc.host-port=jaeger-collector:14250"]
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
networks:
- elastic
restart: on-failure
environment:
- SPAN_STORAGE_TYPE=elasticsearch
depends_on:
- jaeger-collector
jaeger-query:
container_name: jaeger-query
image: jaegertracing/jaeger-query
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- no_proxy=localhost
ports:
- "16686:16686"
- "16687:16687"
networks:
- elastic
restart: on-failure
command: [
"--es.server-urls=http://elasticsearch:9200",
"--span-storage.type=elasticsearch",
"--log-level=debug"
]
depends_on:
- jaeger-agent
sql:
image: "mcr.microsoft.com/mssql/server:2022-latest"
container_name: sql-server-2022
ports: # not actually needed, because the two services are on the same network
- "1433:1433"
networks:
- elastic
environment:
- ACCEPT_EULA=y
- SA_PASSWORD=A&VeryComplex123Password
cesarbmx.cryptowatcher.api:
container_name: crypto-watcher-api
image: ${DOCKER_REGISTRY-}cesarbmx/crypto-watcher-api
build:
context: .
dockerfile: CesarBmx.CryptoWatcher.Api/Dockerfile
networks:
- elastic
ports:
- "65012:8080"
- "65013:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- JAEGER_SERVICE_NAME=CryptoWatcherApi
- JAEGER_AGENT_HOST=jaeger-agent
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger-agent:5778
depends_on:
- jaeger-agent
- sql
- redis
cesarbmx.ordering.api:
container_name: ordering-api
image: ${DOCKER_REGISTRY-}cesarbmx/ordering-api
build:
context: ../OrderingApi/
dockerfile: ../OrderingApi/CesarBmx.Ordering.Api/Dockerfile
networks:
- elastic
ports:
- "65014:8080"
- "65015:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- JAEGER_SERVICE_NAME=OrderingApi
- JAEGER_AGENT_HOST=jaeger-agent
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger-agent:5778
depends_on:
- jaeger-agent
- sql
- redis
cesarbmx.notification.api:
container_name: notification-api
image: ${DOCKER_REGISTRY-}cesarbmx/notification-api
build:
context: ../NotificationApi/
dockerfile: ../NotificationApi/CesarBmx.Notification.Api/Dockerfile
networks:
- elastic
ports:
- "65016:8080"
- "65017:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- JAEGER_SERVICE_NAME=NotificationApi
- JAEGER_AGENT_HOST=jaeger-agent
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger-agent:5778
depends_on:
- jaeger-agent
- sql
- redis
prometheus:
container_name: prometheus
image: quay.io/prometheus/prometheus:latest
ports:
- "9090:9090"
#configs:
# - source: prometheus
# target: /etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- elastic
depends_on:
- cesarbmx.cryptowatcher.api
#- cesarbmx.ordering.api
- cesarbmx.notification.api
grafana:
container_name: grafana
image: grafana/grafana:latest
ports:
- 3000:3000
#volumes:
# - ./grafana/provisioning/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yaml
# - ./grafana/provisioning/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yaml
# - ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=123456
- GF_USERS_ALLOW_SIGN_UP=false
networks:
- elastic
depends_on:
- prometheus
rabbitmq:
container_name: "rabbitmq"
image: rabbitmq:management
hostname: "rabbitmq"
ports:
- '5672:5672'
- '15672:15672'
networks:
- elastic
redis:
container_name: redis
image: redis:latest
hostname: redis
ports:
- 6379:6379
networks:
- elastic
redisinsight:
container_name: redisinsight
image: redislabs/redisinsight:latest
hostname: redisinsight
ports:
- 5540:5540
networks:
- elastic
volumes:
- redis-insight:/data
depends_on:
- redis
networks:
elastic:
driver: bridge
volumes:
elasticsearch-data:
redis-insight: