-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.64 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
services:
# OTel Collector: Receives data and exports to Prometheus & Loki
otel-collector:
image: docker.io/otel/opentelemetry-collector-contrib:0.128.0
container_name: otel-collector
command: ["--config=/etc/otel-collector-config.yml"]
volumes:
- ./otel-collector/otel-collector-config.yml:/etc/otel-collector-config.yml
ports:
- "4317:4317" # OTLP gRPC receiver
# - "4318:4318" # OTLP HTTP receiver
# - "8889:8889" # Prometheus exporter
# depends_on:
# - prometheus
# - loki
# Prometheus: Scrapes and stores metrics
prometheus:
image: docker.io/prom/prometheus:v3.4.1
container_name: prometheus
command: ["--config.file=/etc/prometheus/prometheus.yml", "--web.enable-lifecycle"]
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
# ports:
# - "9090:9090"
# Loki: Stores and indexes logs
loki:
image: docker.io/grafana/loki:3.5.1
container_name: loki
command: ["-config.file=/etc/loki/loki-config.yml"]
volumes:
- ./loki/loki-config.yml:/etc/loki/loki-config.yml
- loki_data:/loki
# ports:
# - "3100:3100"
# Grafana: Visualizes metrics and logs
grafana:
image: docker.io/grafana/grafana:11.6.3
container_name: grafana
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
# depends_on:
# - prometheus
# - loki
volumes:
prometheus_data:
loki_data:
grafana_data: