ЛР6: реализована наблюдаемость (оценка 3)
This commit is contained in:
+53
-6
@@ -61,6 +61,7 @@ services:
|
||||
- SPRING_RABBITMQ_PORT=5672
|
||||
- SPRING_MAIN_WEB_APPLICATION_TYPE=none # <-- Отключаем веб-сервер для воркера
|
||||
- SPRING_PROFILES_ACTIVE=worker
|
||||
- SPRING_APPLICATION_NAME=messenger-worker
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -91,11 +92,6 @@ services:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health/live"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
nginx:
|
||||
image: nginx:1.25-alpine
|
||||
@@ -106,8 +102,59 @@ services:
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
|
||||
otel-collector:
|
||||
image: otel/opentelemetry-collector-contrib:0.111.0
|
||||
command: ["--config=/etc/otel-collector-config.yaml"]
|
||||
volumes:
|
||||
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
||||
ports:
|
||||
- "4317:4317"
|
||||
- "4318:4318"
|
||||
- "8889:8889"
|
||||
|
||||
tempo:
|
||||
image: grafana/tempo:2.5.0
|
||||
command: ["-config.file=/etc/tempo.yaml"]
|
||||
volumes:
|
||||
- ./tempo.yaml:/etc/tempo.yaml
|
||||
ports:
|
||||
- "3200:3200"
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:v2.53.0
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
ports:
|
||||
- "9090:9090"
|
||||
|
||||
loki:
|
||||
image: grafana/loki:3.1.0
|
||||
ports:
|
||||
- "3100:3100"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:11.1.0
|
||||
volumes:
|
||||
- ./grafana/provisioning:/etc/grafana/provisioning
|
||||
- grafana_data:/var/lib/grafana
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- prometheus
|
||||
- loki
|
||||
- tempo
|
||||
promtail:
|
||||
image: grafana/promtail:3.1.0
|
||||
volumes:
|
||||
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./promtail-config.yml:/etc/promtail/config.yml
|
||||
command: -config.file=/etc/promtail/config.yml
|
||||
# Конфиг создадим ниже
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
minio_data:
|
||||
rabbitmq_data:
|
||||
rabbitmq_data:
|
||||
grafana_data:
|
||||
Reference in New Issue
Block a user