forked from Klesh-/near-protocol-node-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
65 lines (59 loc) · 1.67 KB
/
docker-compose.yml
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
version: '2.3'
networks:
monitor-net:
driver: bridge
volumes:
prometheus_data: {}
services:
grafana:
image: grafana/grafana:8.2.6
container_name: grafana
volumes:
- ./grafana/:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning
entrypoint: /run.sh
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
- GF_SERVER_HTTP_PORT=19000
restart: unless-stopped
expose:
- 19000
user: '104'
network_mode: host
prometheus:
image: prom/prometheus:v2.2.0-rc.0
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/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'
- '--storage.tsdb.retention=30d'
- '--web.enable-lifecycle'
- '--web.listen-address=localhost:19001'
restart: unless-stopped
expose:
- 19001
network_mode: host
nodeexporter2:
image: prom/node-exporter:latest
container_name: nodeexporter2
user: root
privileged: true
volumes:
- /:/host:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--path.rootfs=/host'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc|boot)($$|/)'
- '--web.listen-address=localhost:19002'
restart: unless-stopped
expose:
- 19002
network_mode: host