Skip to content

Commit 876cacf

Browse files
committed
ci: update docker-compose.infrastructure.yaml
1 parent a2259fd commit 876cacf

File tree

2 files changed

+85
-24
lines changed

2 files changed

+85
-24
lines changed

deployments/configs/grafana/provisioning/my-config.yaml

Whitespace-only changes.

deployments/docker-compose/docker-compose.infrastructure.yaml

Lines changed: 85 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
# ref: https://github.com/joaofbantunes/DotNetMicroservicesObservabilitySample/blob/main/docker-compose.yml
33
# ref: https://github.com/oskardudycz/EventSourcing.NetCore/blob/main/docker-compose.yml
44
# https://github.com/grafana/intro-to-mltp
5+
# https://stackoverflow.com/questions/65272764/ports-are-not-available-listen-tcp-0-0-0-0-50070-bind-an-attempt-was-made-to
56

6-
name: booking-microservices-java-spring-boot
7+
8+
name: booking-microservices
79

810
services:
911
#######################################################
@@ -44,6 +46,56 @@ services:
4446
networks:
4547
- infrastructure
4648

49+
50+
#######################################################
51+
# EventStoreDB
52+
#######################################################
53+
eventstore:
54+
container_name: eventstore
55+
image: eventstore/eventstore:latest
56+
restart: unless-stopped
57+
environment:
58+
- EVENTSTORE_CLUSTER_SIZE=1
59+
- EVENTSTORE_RUN_PROJECTIONS=All
60+
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
61+
- EVENTSTORE_HTTP_PORT=2113
62+
- EVENTSTORE_INSECURE=True
63+
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=True
64+
ports:
65+
- "2113:2113"
66+
networks:
67+
- infrastructure
68+
69+
70+
#######################################################
71+
# Mongo
72+
#######################################################
73+
mongo:
74+
image: mongo:latest
75+
container_name: mongo
76+
restart: unless-stopped
77+
# environment:
78+
# - MONGO_INITDB_ROOT_USERNAME=root
79+
# - MONGO_INITDB_ROOT_PASSWORD=secret
80+
ports:
81+
- 27017:27017
82+
networks:
83+
- infrastructure
84+
85+
86+
#######################################################
87+
# Redis
88+
#######################################################
89+
redis:
90+
image: redis
91+
container_name: redis
92+
restart: unless-stopped
93+
ports:
94+
- 6379:6379
95+
networks:
96+
- infrastructure
97+
98+
4799
#######################################################
48100
# jaeger
49101
# https://www.jaegertracing.io/docs/1.64/deployment/
@@ -63,6 +115,7 @@ services:
63115
networks:
64116
- infrastructure
65117

118+
66119
#######################################################
67120
# zipkin
68121
# https://zipkin.io/pages/quickstart
@@ -75,6 +128,8 @@ services:
75128
- "9411:9411"
76129
networks:
77130
- infrastructure
131+
132+
78133
#######################################################
79134
# otel-collector
80135
# https://opentelemetry.io/docs/collector/installation/
@@ -100,6 +155,8 @@ services:
100155
- "55679:55679" # zpages extension
101156
networks:
102157
- infrastructure
158+
159+
103160
#######################################################
104161
# prometheus
105162
# https://prometheus.io/docs/introduction/first_steps/
@@ -124,6 +181,8 @@ services:
124181
# - "--log.level=debug"
125182
networks:
126183
- infrastructure
184+
185+
127186
#######################################################
128187
# node-exporter
129188
# https://prometheus.io/docs/guides/node-exporter/
@@ -145,6 +204,8 @@ services:
145204
- "9101:9100"
146205
networks:
147206
- infrastructure
207+
208+
148209
#######################################################
149210
# grafana
150211
# https://grafana.com/docs/grafana/latest/administration/provisioning/
@@ -175,6 +236,8 @@ services:
175236
# - ./../configs/grafana/grafana.ini:/etc/grafana/grafana.ini
176237
networks:
177238
- infrastructure
239+
240+
178241
#######################################################
179242
# tempo
180243
# https://github.com/grafana/tempo/blob/main/example/docker-compose/otel-collector/docker-compose.yaml
@@ -195,6 +258,8 @@ services:
195258
- "24318:4318" # otlp http
196259
networks:
197260
- infrastructure
261+
262+
198263
#######################################################
199264
# loki
200265
# https://grafana.com/docs/opentelemetry/collector/send-logs-to-loki/
@@ -213,6 +278,7 @@ services:
213278
networks:
214279
- infrastructure
215280

281+
216282
#######################################################
217283
# elasticsearch
218284
# https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docker.html#docker-compose-file
@@ -245,6 +311,8 @@ services:
245311
- 9300:9300
246312
networks:
247313
- infrastructure
314+
315+
248316
#######################################################
249317
# kibana
250318
# https://www.elastic.co/guide/en/kibana/current/docker.html
@@ -261,36 +329,29 @@ services:
261329
- elasticsearch
262330
networks:
263331
- infrastructure
264-
332+
333+
265334
#######################################################
266-
# keycloak
335+
# cadvisor
267336
#######################################################
268-
keycloak:
269-
image: quay.io/keycloak/keycloak:latest
270-
container_name: keycloak
337+
cadvisor:
338+
image: gcr.io/cadvisor/cadvisor:latest
339+
container_name: cadvisor
271340
restart: unless-stopped
272-
environment:
273-
KC_DB: postgres
274-
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
275-
KC_DB_USERNAME: postgres
276-
KC_DB_PASSWORD: postgres
277-
KEYCLOAK_ADMIN: admin
278-
KEYCLOAK_ADMIN_PASSWORD: admin_keycloak
279-
KC_HOSTNAME: localhost
280-
KC_HOSTNAME_PORT: 8080
281-
KC_HOSTNAME_STRICT: false
282-
KC_HOSTNAME_STRICT_HTTPS: false
283-
KC_LOG_LEVEL: info
284-
KC_METRICS_ENABLED: true
285-
KC_HEALTH_ENABLED: true
286341
ports:
287342
- "8080:8080"
288-
command: start-dev
289-
depends_on:
290-
- postgres
343+
volumes:
344+
- /:/rootfs:ro
345+
- /var/run:/var/run:ro
346+
- /sys:/sys:ro
347+
- /var/lib/docker/:/var/lib/docker:ro
348+
- /dev/disk/:/dev/disk:ro
349+
devices:
350+
- /dev/kmsg
291351
networks:
292352
- infrastructure
293-
353+
354+
294355
networks:
295356
infrastructure:
296357
name: infrastructure

0 commit comments

Comments
 (0)