-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 2.57 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
services:
# collector:
# image: otel/opentelemetry-collector:0.103.1
# extra_hosts: ['host.docker.internal:host-gateway']
# volumes:
# - ./docker/otel-collector/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
# ports:
# - 1888:1888 # pprof extension
# - 8888:8888 # Prometheus metrics exposed by the collector
# - 8889:8889 # Prometheus exporter metrics
# - 13133:13133 # health_check extension
# - 4318:4318 # OTLP http receiver (for metrics and spans)
# - 55679:55679 # zpages extension
prometheus:
image: prom/prometheus:v2.54.1 # https://hub.docker.com/r/prom/prometheus
extra_hosts: ['host.docker.internal:host-gateway']
command:
- --enable-feature=exemplar-storage
- --enable-feature=otlp-write-receiver
- --web.enable-remote-write-receiver
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- prometheus:/prometheus
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
image: grafana/grafana:10.4.10 # https://hub.docker.com/r/grafana/grafana/tags
extra_hosts: ['host.docker.internal:host-gateway']
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./docker/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
ports:
- "3000:3000"
tempo:
image: grafana/tempo:2.4.2 # https://hub.docker.com/r/grafana/tempo/tags and https://github.com/grafana/tempo/releases
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/tempo.yml']
volumes:
- tempo:/tmp/tempo
- ./docker/grafana/tempo.yml:/etc/tempo.yml:ro
ports:
- "3200:3200" # tempo
- "4318:4318" # otlp http
loki:
image: grafana/loki:3.1.2 # https://hub.docker.com/r/grafana/loki/tags and https://github.com/grafana/loki/releases
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/loki/local-config.yaml']
ports:
- "3100:3100"
volumes:
prometheus:
driver: local
tempo:
driver: local