forked from symfony/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (109 loc) · 3.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
109 lines (109 loc) · 3.09 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
networks:
demo:
driver: bridge
ipam:
config:
- subnet: 192.168.43.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
- '11025:1025'
prometheus:
image: prom/prometheus:latest
restart: always
command:
- --config.file=/etc/prometheus/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
- --enable-feature=native-histograms
volumes:
- ./docker/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
networks:
- demo
ports:
- "9090:9090" # http://localhost:9090
redpanda:
image: redpandadata/redpanda:latest
networks:
- demo
command: >
redpanda start --overprovisioned
--mode=dev-container
--kafka-addr=PLAINTEXT://0.0.0.0:9092
--advertise-kafka-addr=PLAINTEXT://redpanda:9092
tempo:
image: grafana/tempo:latest
command: ["-target=all", "-config.file=/etc/tempo.yaml"]
restart: always
volumes:
- ./docker/tempo.yaml:/etc/tempo.yaml:ro
- ./var/tempo:/var/tempo
networks:
- demo
ports:
- "3200" # tempo
- "4317" # otlp grpc
- "4318" # otlp http
depends_on:
- redpanda
loki:
image: grafana/loki:latest
networks:
- demo
ports:
- "3100"
command: -config.file=/etc/loki/loki-config.yaml
volumes:
- ./docker/loki-config.yaml:/etc/loki/loki-config.yaml:ro
otel-collector:
build:
context: .
dockerfile: docker/otel-collector.Dockerfile
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:
- "1777:1777" # 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
- "14317:4317" # OTLP gRPC receiver
- "14318:4318" # OTLP HTTP receiver
- "55679:55679" # zpages extension
depends_on:
- prometheus
- loki
- tempo
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
depends_on:
- otel-collector