@@ -3,37 +3,69 @@ version: "3.4"
33volumes :
44 nethermind-db :
55 keystore :
6- logs :
6+ prometheus-data :
77
88services :
99 poco-chain :
1010 image : nexus.intra.iex.ec/poco-chain:native-vX.Y.Z-alpha
1111 container_name : poco-chain
1212 restart : always
1313 environment :
14- # - NETHERMIND_CONFIG=poco-chain
1514 # Netstats
1615 - NETHERMIND_ETHSTATSCONFIG_ENABLED=true
17161817 - NETHERMIND_ETHSTATSCONFIG_SERVER=ws://netstats:3000/api
1918 - NETHERMIND_ETHSTATSCONFIG_SECRET=whatever
2019 # Metrics
21- # - NETHERMIND_METRICSCONFIG_ENABLED=true
22- # - NETHERMIND_METRICSCONFIG_PUSHGATEWAYURL=http://pushgateway:9091/metrics
20+ - NETHERMIND_METRICSCONFIG_ENABLED=true
21+ - NETHERMIND_METRICSCONFIG_PUSHGATEWAYURL=http://pushgateway:9091/metrics
2322 ports :
2423 - 8545:8545
25- volumes :
26- - nethermind-db:/nethermind/nethermind_db/poco-chain
27- - keystore:/nethermind/keystore
28- - logs:/nethermind/logs
24+ # volumes:
25+ # - nethermind-db:/nethermind/nethermind_db/poco-chain
26+ # - keystore:/nethermind/keystore
2927 depends_on :
3028 - netstats
29+ - pushgateway
3130
3231 netstats :
3332 image : docker-regis.iex.ec/netstats:0.0.9
3433 container_name : netstats
3534 ports :
36- - 3000 :3000
35+ - 8080 :3000
3736 environment :
3837 - WS_SECRET=whatever
3938 restart : always
39+
40+ grafana :
41+ image : grafana/grafana:9.4.3
42+ container_name : grafana
43+ restart : unless-stopped
44+ ports :
45+ - 3000:3000
46+ volumes :
47+ - ./metrics/grafana/:/etc/grafana/provisioning/
48+
49+ prometheus :
50+ image : prom/prometheus:v2.42.0
51+ container_name : prometheus
52+ command :
53+ - ' --config.file=/etc/prometheus/prometheus.yml'
54+ - ' --storage.tsdb.path=/prometheus'
55+ - ' --web.console.libraries=/etc/prometheus/console_libraries'
56+ - ' --web.console.templates=/etc/prometheus/consoles'
57+ - ' --storage.tsdb.retention=200h'
58+ - ' --web.enable-lifecycle'
59+ restart : unless-stopped
60+ expose :
61+ - 9090
62+ volumes :
63+ - ./metrics/prometheus/:/etc/prometheus/
64+ - prometheus-data:/prometheus
65+
66+ pushgateway :
67+ image : prom/pushgateway:v1.5.1
68+ container_name : pushgateway
69+ restart : unless-stopped
70+ expose :
71+ - 9091
0 commit comments