-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (61 loc) · 1.58 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
65 lines (61 loc) · 1.58 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
services:
oomwatcher:
container_name: oomwatcher
image: oomwatcher/local
build: ./oomwatcher
restart: unless-stopped
privileged: true
pid: host
volumes:
- /sys:/sys:ro
profiles:
- memgen
memgenerator:
container_name: memgenerator
image: memgenerator/local
build: ./memgenerator
pid: host
restart: unless-stopped
cap_add:
- SYS_RAWIO # If the process has CAP_SYS_RAWIO capabilities, a SIGTERM is sent to give the process a chance of exiting cleanly, otherwise a SIGKILL is sent.
depends_on:
- oomwatcher
command:
- ${MEMGEN_COMMAND:-}
profiles:
- memgen
otel_collector:
image: otel/opentelemetry-collector-contrib:0.130.0
container_name: otel_collector
volumes:
- ./otelcollector/config-collector.yaml:/etc/otelcol-contrib/config.yaml
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
ports:
- 8888:8888 # Prometheus metrics exposed by the Collector
networks:
- monitoring
profiles:
- monitoring
prometheus:
image: prom/prometheus
container_name: prometheus
user: "0"
volumes:
- ./prometheus/conf/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
expose:
- 9090
ports:
- '9090:9090'
command:
- '--web.enable-otlp-receiver'
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- monitoring
profiles:
- monitoring
networks:
monitoring:
driver: bridge