-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
90 lines (81 loc) · 2.24 KB
/
docker-compose.yaml
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
version: "3.9"
networks:
default:
name: poc
driver: bridge
services:
entrypoint-service:
build: services/entrypoint-service
ports:
- "8080:8080"
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
- OTEL_SERVICE_NAME=entrypoint-service
- NEXT_SERVICE_ENDPOINT=http://next-service:8081
depends_on:
otelcol:
condition: service_started
tempo:
condition: service_started
restart: unless-stopped
next-service:
build: services/next-service
ports:
- "8081:8081"
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
- OTEL_SERVICE_NAME=next-service
depends_on:
otelcol:
condition: service_started
tempo:
condition: service_started
restart: unless-stopped
otelcol:
image: otel/opentelemetry-collector-contrib:0.88.0
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ./otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317" # OTLP over gRPC receiver
- "4318:4318" # OTLP over HTTP receiver
restart: unless-stopped
tempo:
image: grafana/tempo:2.1.1
ports:
- "3200:3200"
- "4417:4417"
- "4418:4418"
volumes:
- ./tempo/tempo-config.yaml:/config.yaml
command:
- --config.file=/config.yaml
grafana:
image: grafana/grafana:10.0.0
ports:
- "3000:3000"
volumes:
- ./grafana/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/grafana-datasources.yaml
- ./grafana/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yaml
- ./grafana/grafana-example-dashboard.json:/etc/grafana/example-dashboard.json
prometheus:
platform: linux/amd64
image: prom/prometheus:v2.47.2
command:
- --config.file=/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=otlp-write-receiver
volumes:
- ./prometheus/prometheus.yaml:/prometheus.yaml
ports:
- "9090:9090"
k6:
platform: linux/amd64
image: grafana/k6
volumes:
- ./k6/k6-script.js:/k6-script.js
command:
- run
- /k6-script.js
depends_on:
- entrypoint-service