-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (74 loc) · 2.38 KB
/
docker-compose.yml
File metadata and controls
82 lines (74 loc) · 2.38 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
version: "3.9"
services:
grafana:
image: grafana/grafana:12.1.1
container_name: grafana
ports: ["3000:3000"]
env_file: [.env]
volumes:
- ${CONFIG_ROOT}/grafana/provisioning:/etc/grafana/provisioning:ro
- ${CONFIG_ROOT}/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on: [prometheus, loki, tempo]
loki:
image: grafana/loki:3.5.0
container_name: loki
command: ["-config.file=/etc/loki/config/loki-config.yml"]
ports: ["3100:3100"]
volumes:
- ${CONFIG_ROOT}/loki/loki-config.yml:/etc/loki/config/loki-config.yml:ro
- loki-data:/loki
tempo:
image: grafana/tempo:2.8.2
container_name: tempo
command: ["-config.file=/etc/tempo/config/tempo-config.yml"]
ports: ["3200:3200"]
volumes:
- ${CONFIG_ROOT}/tempo/tempo-config.yml:/etc/tempo/config/tempo-config.yml:ro
- tempo-data:/var/tempo
prometheus:
image: prom/prometheus:v2.53.5
container_name: prometheus
command: ["--config.file=/etc/prometheus/prometheus.yml", "--storage.tsdb.retention.time=1d"]
ports: ["9090:9090"]
volumes:
- ${CONFIG_ROOT}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prom-data:/prometheus
otelcol:
image: otel/opentelemetry-collector-contrib:0.133.0
container_name: otelcol
command: ["--config=/etc/otelcol/otelcol-config.yml"]
ports: ["4317:4317", "4318:4318", "8889:8889"]
volumes:
- ${CONFIG_ROOT}/otel-collector/otelcol-config.yml:/etc/otelcol/otelcol-config.yml:ro
depends_on: [loki, tempo]
app:
build: ./app
container_name: space-app
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 30s
retries: 5
start_period: 10s
environment:
OTEL_SERVICE_NAME: space-app
OTEL_RESOURCE_ATTRIBUTES: service.version=1.0.0,service.namespace=demo,service.instance.id=${HOSTNAME:-container}
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://otelcol:4318
OTEL_METRICS_EXPORTER: otlp
OTEL_TRACES_EXPORTER: otlp
OTEL_LOGS_EXPORTER: otlp
ports: ["8000:8000"]
depends_on: [otelcol]
loadgen:
build: ./loadgen
container_name: loadgen
environment:
TARGET_BASE_URL: http://space-app:8000
depends_on:
app:
condition: service_healthy
volumes:
loki-data:
tempo-data:
prom-data: