-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (72 loc) · 2.4 KB
/
docker-compose.yaml
File metadata and controls
76 lines (72 loc) · 2.4 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
services:
# Miri testing service for Linux (tokio support via epoll shims)
# Note: macOS tokio is not supported by miri - use Linux container for testing
miri:
build:
context: .
dockerfile: Dockerfile.miri
volumes:
- .:/workspace
environment:
# Optional: Add miri flags for stricter checking
# MIRIFLAGS: "-Zmiri-strict-provenance -Zmiri-symbolic-alignment-check"
- RUST_BACKTRACE=1
command: cargo +nightly miri test --features test_utils --workspace --exclude foyer-bench
# Monitoring stack services (for performance profiling and metrics)
# node-exporter collects system-level metrics (CPU, memory, disk, network)
# Used by Prometheus for monitoring foyer-bench and other performance tests
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports:
- 9100:9100
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
volumes:
- ./etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./.tmp/prometheus:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
ports:
- 9090:9090
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:latest
container_name: grafana
volumes:
- ./etc/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./etc/grafana/provisioning:/etc/grafana/provisioning
- ./etc/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- NO_PROXY=prometheus
jaeger:
image: jaegertracing/all-in-one:latest
container_name: jaeger
command:
- '--collector.otlp.enabled=true'
ports:
# https://www.jaegertracing.io/docs/1.58/getting-started/
- 6831:6831/udp
- 6832:6832/udp
- 16686:16686
- 4317:4317