forked from lightninglabs/lndmon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·47 lines (42 loc) · 1.39 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
version: "3.7"
services:
lndmon:
build: .
ports:
- "9092:9092"
restart: always
volumes:
- ${TLS_CERT_PATH?}:/root/.lnd/tls.cert
- ${MACAROON_PATH?}:/root/.lnd/
command: --prometheus.listenaddr=0.0.0.0:9092 --lnd.network=$LND_NETWORK --lnd.host=$LND_HOST --lnd.macaroondir=/root/.lnd --lnd.tlspath=/root/.lnd/tls.cert
prometheus:
image: prom/prometheus:v2.10.0
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-storage:/prometheus
# Reasoning behind Prometheus command query flags:
# --query.max-samples: each Prometheus data sample is 16 bytes.
# 16B * 31250000 = 1/2 GB.
# --query.max-concurrency: the max # of concurrent queries (default is 20).
# these parameters are intended to limit the amount of memory Prometheus
# uses for its queries to ~1GB, because it's sensitive to OOMs.
command: "--config.file=/etc/prometheus/prometheus.yml --query.max-samples=31250000 --query.max-concurrency=2"
ports:
- "9090:9090"
restart: always
depends_on:
- lndmon
grafana:
image: grafana/grafana:6.2.0
ports:
- "3000:3000"
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- grafana-storage:/var/lib/grafana
post_start:
build: ./post_start
depends_on:
- grafana
volumes:
grafana-storage:
prometheus-storage: