-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 2.08 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
65
66
67
68
69
70
71
72
73
74
version: '3.8'
volumes:
grafana_data: {}
prometheus_data: {}
services:
pushgateway:
image: prom/pushgateway:latest
restart: unless-stopped
ports:
- ${PUSH_BIND:-127.0.0.1}:${PUSH_PORT:-9091}:9091
expose:
- 9091
prom-exporter:
image: pwojcikdev/nano-prom-exporter
restart: "unless-stopped"
network_mode: "host"
depends_on:
- pushgateway
command: --host ${RPC_HOST:-127.0.0.1} --port ${RPC_PORT:-7076} --push_gateway http://${PUSH_BIND:-127.0.0.1}:${PUSH_PORT:-9091} --interval ${INTERVAL:-3} --hostname ${NAME:-nano-node} --runid ${NAME:-nano-node}
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
user: root
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ${PROM_DATA:-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'
- '--web.enable-lifecycle'
ports:
- ${PROM_BIND:-127.0.0.1}:${PROM_PORT:-9090}:9090
expose:
- 9090
grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
depends_on:
- prometheus
ports:
- ${GRAFANA_BIND:-127.0.0.1}:${GRAFANA_PORT:-3000}:3000
expose:
- 3000
volumes:
- ${GRAFANA_DATA:-grafana_data}:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./dashboards:/etc/dashboards
environment:
- GF_AUTH_LOGIN_COOKIE_NAME=${NAME:-local}-grafana
- GF_RENDERING_SERVER_URL=http://grafana-renderer:8081/render
- GF_RENDERING_CALLBACK_URL=http://grafana:${GRAFANA_PORT:-3000}/
## (Optional)
pushgateway-cleaner:
image: pwojcikdev/prometheus-pushgateway-cleaner
restart: unless-stopped
command:
- '-address=http://pushgateway:9091'
- '-ttl=0h1m00s'
- '-debug=true'
## (Optional)
# grafana-renderer:
# image: grafana/grafana-image-renderer:latest
# ports:
# - 8081