-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose-prometheus2.yml
More file actions
40 lines (40 loc) · 1.16 KB
/
docker-compose-prometheus2.yml
File metadata and controls
40 lines (40 loc) · 1.16 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
services:
prometheus-node2:
image: prom/prometheus:v2.31.0
container_name: prometheus-node2
volumes:
- ./prometheus/node2/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/node2/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.min-block-duration=1m'
- '--storage.tsdb.max-block-duration=1m'
- '--storage.tsdb.retention.time=5m'
ports:
- "9082:9090"
networks:
- net-prometheus2
thanos-sidecar2:
image: raspbernetes/thanos:v0.23.1
container_name: thanos-sidecar2
volumes:
- ./prometheus/node2/data:/var/prometheus
- ./thanos/bucket_config.yaml:/bucket_config.yaml
command:
- sidecar
- --tsdb.path=/var/prometheus
- --prometheus.url=http://prometheus-node2:9090
- --objstore.config-file=/bucket_config.yaml
- --http-address=0.0.0.0:19191
- --grpc-address=0.0.0.0:19090
ports:
- "29191:19191"
- "29090:19090"
networks:
- net-prometheus2
depends_on:
- prometheus-node2
networks:
net-prometheus2:
driver: bridge