-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 2.14 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 2.14 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
networks:
otel-network:
driver: bridge
services:
otel-collector:
image: otel/opentelemetry-collector-contrib:latest # ≈ 50 MB
container_name: otel-collector
command: ["--config=/etc/otel/collector-config.yaml"]
volumes:
- ./collector-config.yaml:/etc/otel/collector-config.yaml:ro
ports:
- "4317:4317" # OTLP gRPC in
- "4318:4318" # OTLP HTTP in
- "8889:8889" # Prometheus scrape out
restart: unless-stopped
networks:
- otel-network
otel-prometheus:
image: prom/prometheus:latest
container_name: otel-prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=2y
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- otel-prometheus-data:/prometheus
ports:
- "9098:9090"
restart: unless-stopped
depends_on: [otel-collector]
networks:
- otel-network
otel-loki:
image: grafana/loki:latest
container_name: otel-loki
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- otel-loki-data:/loki
restart: unless-stopped
networks:
- otel-network
otel-grafana:
image: grafana/grafana-oss:latest
container_name: otel-grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
- GF_FEATURE_TOGGLES_ENABLE=logsSampleInExplore
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml:ro
- ./grafana-dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml:ro
- ./dashboards/unified-dashboard.json:/var/lib/grafana/dashboards/unified-dashboard.json:ro
ports:
- "13001:3000"
restart: unless-stopped
depends_on: [otel-prometheus, otel-loki]
networks:
- otel-network
volumes:
otel-prometheus-data:
otel-loki-data: