forked from symfony/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (86 loc) · 2.49 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.8'
networks:
demo:
driver: bridge
ipam:
config:
- subnet: 192.168.42.0/24
# https://github.com/grafana/tempo/tree/main/example/docker-compose/otel-collector
# https://github.com/grafana/loki/tree/main/examples/getting-started
services:
mailpit:
image: axllent/mailpit:latest
restart: unless-stopped
environment:
- TZ=Europe/Paris
networks:
- demo
ports:
- '8025:8025' # http://localhost:8025
- '1025:1025'
otel-collector:
image: otel-collector:latest
restart: always
command: ["--config=/etc/otel-collector.yaml"]
volumes:
- ./docker/otel-collector.yaml:/etc/otel-collector.yaml:ro
networks:
- demo
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector http://localhost:8888/metrics
- "8889:8889" # Prometheus exporter metrics http://localhost:8889/metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "55679:55679" # zpages extension
prometheus:
image: prom/prometheus:latest
restart: always
command:
- --config.file=/etc/prometheus/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
volumes:
- ./docker/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
networks:
- demo
ports:
- "9090:9090" # http://localhost:9090
tempo:
image: grafana/tempo:latest
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./docker/tempo.yaml:/etc/tempo.yaml:ro
- ./var/tempo:/tmp/tempo
networks:
- demo
ports:
- "3200" # tempo
- "4317" # otlp grpc
- "4318" # otlp http
loki:
image: grafana/loki:latest
networks:
- demo
ports:
- "3100"
command: -config.file=/etc/loki/local-config.yaml
grafana:
image: grafana/grafana:latest
volumes:
- ./docker/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
networks:
- demo
ports:
- "3000:3000" # http://localhost:3000/explore
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5