228 Commits

Author SHA1 Message Date
cventastic
96c90dee4b only touch setupdone for pokt bootstrap if tar command succeeds 2022-04-14 18:40:18 +02:00
cventastic
121c44446c add old snapshot 2022-04-14 18:34:43 +02:00
cventastic
6785eec7c6 use different ports 2022-04-14 18:20:24 +02:00
cventastic
a5aacfd4d9 add bootstrap... 2022-04-14 18:18:20 +02:00
cventastic
3859c921ac add mainnet volume 2022-04-14 18:10:46 +02:00
cventastic
7b0dae1272 moved volumes from env to volumes :/ 2022-04-14 18:07:39 +02:00
cventastic
34d27c0bfb pokt-test preparation for beta-update 2022-04-14 18:06:13 +02:00
cventastic
5f3f9cd471 pokt-test preparation for beta-update 2022-04-14 17:57:22 +02:00
cventastic
82fee8d3d6 wrong handling of variables 2022-04-07 13:47:41 +02:00
cventastic
f610486fcb missing space 2022-04-07 13:42:11 +02:00
cventastic
367fe7e355 deleted example config, added polygon healthcheck 2022-04-07 13:37:54 +02:00
cventastic
1f6e128144 added bsc
removed merge notation in prometheus-lt-1.yml
2022-03-31 13:09:45 +02:00
cventastic
bfe6db1eda put timeout from 30 to 60s 2022-03-25 11:41:38 +01:00
cventastic
ee90c39c29 changed erigon for geth on another backend 2022-03-25 11:35:41 +01:00
cventastic
f960e2a87c added polygon 2022-03-24 17:01:12 +01:00
czarly
d6264c93bd merge 2022-02-13 21:50:23 +00:00
czarly
2c8788a373 combined haproxy with the lt config 2022-02-13 21:44:05 +00:00
Your Name
1c81b55c1b missing haproxy config 2022-02-13 21:32:07 +01:00
Your Name
b202565599 missing haproxy config 2022-02-13 21:32:07 +01:00
Your Name
68d4f07d67 refactor the compose files in modules and start to generate prometheus scrape targets. added haproxy. 2022-02-13 20:49:01 +01:00
Your Name
51c432ae78 refactor the compose files in modules and start to generate prometheus scrape targets. added haproxy. 2022-02-13 20:49:01 +01:00
cventastic
34ad7988b4 added healthcheck to mon-client 2022-02-11 11:34:30 +01:00
cventastic
3eda933c49 added healthcheck wireguard 2022-02-11 11:30:31 +01:00
cventastic
91f49a9fef add datasource rpc-de-02 2022-02-11 11:02:38 +01:00
cventastic
6bd308e0f9 removed blank line ropsten-healthcheck.sh
removed Authentication, not available anymore. using whitelist now...
2022-02-10 09:49:53 +01:00
cventastic
4d129c0e46 removed space in filename.... 2022-02-10 09:40:17 +01:00
cventastic
c1b3cc99ad re-add haproxy 2022-02-10 09:33:05 +01:00
cventastic
79ab34fc17 cant put network in 2022-02-03 17:36:26 +01:00
cventastic
b3dd63d00a added networks. dont check this out on rpc-de-1 xD 2022-02-03 17:34:10 +01:00
cventastic
d9369f4f9a added datasource for pokt 2022-01-30 10:19:33 +01:00
cventastic
42f9a262c9 🤦 2022-01-30 10:11:31 +01:00
cventastic
f83ed0170f changed names added. pokt-lt-1 metrics 2022-01-30 10:05:30 +01:00
cventastic
a27a6be96f changed names. added datasources 2022-01-30 09:33:44 +01:00
cventastic
6296e14282 i already established thats not working... forgot it for rpc. 2022-01-30 09:07:27 +01:00
cventastic
14483ea8a2 geth-mainnet doesnt exist anymore. forgot to delete volume 2022-01-30 08:54:59 +01:00
cventastic
d8d5c6e436 no bsc here 2022-01-30 08:27:14 +01:00
cventastic
b359aec426 changed harmony volume name for style reasons 2022-01-30 08:16:38 +01:00
cventastic
05f4e2acb7 wrong env 2022-01-30 05:11:48 +01:00
cventastic
e21e48b8eb use bigger and better nodeexporter dashboard. 2022-01-27 20:42:22 +01:00
cventastic
a734ac1171 doesnt seem to work 2022-01-27 20:07:38 +01:00
cventastic
4f422e48a1 changed port... double usage... 2022-01-27 19:57:28 +01:00
cventastic
1331b184d5 wrong volume name 2022-01-27 19:50:07 +01:00
cventastic
ff3e1b47c8 added 4 lithuanian pokt nodes.
we will have to use --scale if that goes on in this speed.
because docker-files don't scale.
added docker-compose.pokt-lt-01.yml
2022-01-27 18:59:13 +01:00
cventastic
2cf4bac577 dont need pushgateway atm maybe later.. 2022-01-27 18:09:15 +01:00
cventastic
d29348e5fc dont need pushgateway atm maybe later.. 2022-01-27 15:55:48 +01:00
cventastic
b9c9379ba1 added harmony-rpc bootstrap 2022-01-27 03:05:40 +01:00
cventastic
893ec05e73 add metrics port for prometheus 2022-01-25 17:13:43 +01:00
cventastic
67b0026430 add tcp ports for harmony to outside world 2022-01-25 17:08:29 +01:00
cventastic
4608233b1e added hmy cli tool 2022-01-25 16:06:44 +01:00
cventastic
05f67d7e59 we dont need geth-mainnet anymore 2022-01-25 13:55:09 +01:00
cventastic
c81945a6eb update README_POKT.md 2022-01-25 13:10:22 +01:00
cventastic
127fcd1d6f no bash just shell 2022-01-24 12:04:45 +01:00
cventastic
888251469f new dashboards 2022-01-24 11:03:31 +01:00
cventastic
d3b529bc58 new dashboards 2022-01-24 11:03:08 +01:00
cventastic
dac6a5c0eb Docs say: --prometheus enable HTTP / Prometheus requests (default true) 2022-01-24 10:36:27 +01:00
cventastic
05554dedbf fix underscore 2022-01-24 10:29:43 +01:00
cventastic
b71bbcd45d add prometheus_harmony.yml 2022-01-24 10:25:36 +01:00
cventastic
83ef8d47ad fix harmony.sh RUN command
update README_HARMONY.md
enable prometheus for harmony.sh
2022-01-24 10:25:02 +01:00
cventastic
32e474347f 🤦 2022-01-24 09:45:46 +01:00
cventastic
47667f1aeb bootstrap debugging 2022-01-24 08:47:48 +01:00
cventastic
297dd6dddb bootstrap debugging 2022-01-24 08:38:31 +01:00
cventastic
126daf767f create folders 2022-01-24 08:34:51 +01:00
cventastic
6093e279ea uncomment download in harmony.sh after manual move 2022-01-24 08:30:11 +01:00
cventastic
7df451b58c uncomment download in harmony.sh after manual move 2022-01-24 08:24:15 +01:00
cventastic
25cf170ed6 fix bootstrap skript harmony.sh. fix volumes of harmony docker file 2022-01-24 08:20:32 +01:00
cventastic
7eb466e383 fix README_POKT.md 2022-01-23 22:44:18 +01:00
cventastic
59cdc5eba2 added pokt/config.json to prepare.sh 2022-01-23 21:15:18 +01:00
cventastic
7f25960c5a added pokt config with metrics enabled... 2022-01-23 21:11:11 +01:00
cventastic
e6098398c6 added tendermint metrics 2022-01-23 19:46:34 +01:00
cventastic
d27fc8d269 update README.md 2022-01-23 16:58:18 +01:00
cventastic
7ea656b6c2 cat/EOF doesnt like to be inside if statement 2022-01-23 16:53:34 +01:00
cventastic
1d272cdc75 forgot to add script 2022-01-23 16:47:36 +01:00
cventastic
1713f8b759 added bootstrap to harmony 2022-01-23 16:47:08 +01:00
cventastic
3c8c624c10 shard 1 and no persisten bootnodes, let harmony choose 2022-01-23 15:13:45 +01:00
cventastic
6b18040473 remove comment 2022-01-23 14:07:38 +01:00
cventastic
4bff8010e6 added harmony validator compose-file 2022-01-23 13:34:01 +01:00
cventastic
c99af9a7ca hide query path. good i found out before someone else did :O 2022-01-22 09:41:33 +01:00
cventastic
ed8188db80 why everyone does their own regexp 2022-01-22 09:29:02 +01:00
cventastic
f311c54be4 syn 2022-01-22 08:26:08 +01:00
cventastic
4cd11a6c79 fix ) 2022-01-22 08:03:22 +01:00
cventastic
c5a77a8e3a hide query path 2022-01-22 07:50:29 +01:00
cventastic
2f4178daba sort chains, update readme, rename mon-compose files 2022-01-19 00:26:36 +01:00
cventastic
69770762f3 fix prometheus.yml 2022-01-15 03:11:32 +01:00
cventastic
b9ab440ef4 traefik metrics 2022-01-13 23:48:12 +01:00
cventastic
5639cf70b3 added metrics for traefik 2022-01-13 23:38:40 +01:00
cventastic
749e9ccc22 fix variable name 2022-01-13 23:12:33 +01:00
cventastic
9718b6645e Merge branch 'main' of github.com:cventastic/POKT_DOKT 2022-01-13 23:07:53 +01:00
cventastic
cc926af991 added traefik metrics and more chains 2022-01-13 23:07:39 +01:00
Sebastian
db7e7a51b5 open avalanche ports and revert version pinning 2022-01-13 19:53:02 +01:00
Sebastian
3f3e19a675 open avalanche ports and revert version pinning 2022-01-13 19:51:18 +01:00
Sebastian
a4faf06b74 open avalanche ports and revert version pinning 2022-01-13 19:50:33 +01:00
Sebastian
1b14565870 Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-13 19:32:15 +01:00
Sebastian
2b24b182c8 pin avax version 2022-01-13 19:32:08 +01:00
cventastic
019e9db840 fix env 2022-01-13 18:38:59 +01:00
cventastic
91cec100f9 added scond pokt node 2022-01-13 18:27:01 +01:00
cventastic
06a09c9dfb second node on iokula 2022-01-13 18:21:09 +01:00
cventastic
fbf7c7406d added pokt monitoring for earnings. work in progress 2022-01-13 17:33:27 +01:00
cventastic
3bccfa038e not working 2022-01-12 19:19:42 +01:00
cventastic
e07f2359dd fix script 2022-01-12 19:06:08 +01:00
cventastic
54558d6e5a add erigon, simple stupid alarming 2022-01-12 19:00:12 +01:00
cventastic
b1dfc66c5f new xdai.json 2022-01-12 17:09:20 +01:00
Sebastian
d61180a5cd fix 2022-01-12 14:53:24 +01:00
Sebastian
23ee7b3fe4 added fuse 2022-01-12 14:38:45 +01:00
Sebastian
be9a775de5 added bsc to the compose file 2022-01-12 14:01:46 +01:00
Sebastian
e5fd725e3e fix avalanche volume mount point 2022-01-12 08:26:11 +01:00
cventastic
258e67da0b updated readme 2022-01-11 15:04:19 +01:00
cventastic
93c4f95ac8 fix harmony test 2022-01-11 15:00:52 +01:00
cventastic
099f6347c7 added harmony 2022-01-11 14:57:37 +01:00
cventastic
478b9bba91 funzt nicht 2022-01-11 11:02:43 +01:00
cventastic
4af8f8fb51 added filebased logging 2022-01-11 10:59:15 +01:00
cventastic
5cb05a7a2c wg0.conf file needs some other kind of deployment, maybe ansible? 2022-01-11 10:42:34 +01:00
cventastic
d807c66150 added harmony to relay 2022-01-11 10:37:43 +01:00
cventastic
b3b08b22b3 add wg0.conf otherwise a folder gets created?! 2022-01-10 16:02:31 +01:00
cventastic
ccedf8d7e7 added iokula pokt node 2022-01-10 15:53:11 +01:00
cventastic
d56b59e47a removed fuse 2022-01-10 12:07:04 +01:00
cventastic
e896bc69be add harmony example rpc request 2022-01-10 12:00:16 +01:00
cventastic
8ec9a3156b added correct datadir to hrmny 2022-01-05 11:57:59 +01:00
cventastic
ded282998c update readme, update testnet-relay domain variable 2022-01-04 17:02:10 +01:00
cventastic
86b739b61b grafana new version for alerting 2022-01-03 16:45:19 +01:00
cventastic
3c51faa5d4 added variable, deleted redundant stuff 2022-01-03 14:10:18 +01:00
cventastic
2076f71dd5 added to dashboards 2022-01-03 13:48:09 +01:00
cventastic
af666cbdd7 datasource needed. variable not working as expected :O 2022-01-03 13:24:22 +01:00
cventastic
340e443f0e Merge branch 'main' of github.com:cventastic/POKT_DOKT 2022-01-03 13:17:08 +01:00
cventastic
30b0fa26be leave datasource empty for variable 2022-01-03 13:17:01 +01:00
Sebastian
5073933208 Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-03 13:08:55 +01:00
Sebastian
7c0b95e47f add fuse network 2022-01-03 13:08:49 +01:00
cventastic
6206373f04 edited datasource 2022-01-03 12:59:39 +01:00
cventastic
da9569ba97 test old files 2022-01-03 12:54:11 +01:00
cventastic
d2fd3e8a2e newline for yml 2022-01-03 12:47:57 +01:00
cventastic
6e8be0bee5 Merge branch 'main' of github.com:cventastic/POKT_DOKT 2022-01-03 12:33:07 +01:00
cventastic
1ec1148786 deleted redundant grafana dashboard 2022-01-03 12:33:03 +01:00
Sebastian
5e63e8589b Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-03 12:32:07 +01:00
Sebastian
4904b09f8c make xdai p2p sync port available 2022-01-03 12:32:00 +01:00
cventastic
9202948739 specific path not working 2022-01-03 12:29:51 +01:00
cventastic
c57a8396c9 try out specific path 2022-01-03 12:27:45 +01:00
Sebastian
8dcae76a80 Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-03 12:26:28 +01:00
Sebastian
33c9df931c add xdai 2022-01-03 12:26:21 +01:00
cventastic
39ed18953e updated readme 2022-01-03 12:07:44 +01:00
cventastic
43c8ca8872 Merge branch 'main' of github.com:cventastic/POKT_DOKT 2022-01-03 12:03:35 +01:00
cventastic
df007ec024 added pokt-de-1 to monitoring 2022-01-03 12:03:20 +01:00
Sebastian
70bd91277b remove the kernel options that do not work 2022-01-03 11:59:51 +01:00
Sebastian
c5cbde2d42 Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-03 11:53:37 +01:00
Sebastian
8cb58bc0cf limits to the harmony container 2022-01-03 11:53:33 +01:00
cventastic
591f305077 changed datasource for pokt-test 2022-01-03 11:52:50 +01:00
cventastic
d4dd7c1049 added test-pokt to grafana 2022-01-03 11:41:10 +01:00
cventastic
324f92294f test provider name change 2022-01-03 11:30:40 +01:00
Sebastian
472b208ad3 but now it's done 2022-01-03 11:29:33 +01:00
Sebastian
a711631f84 but now 2022-01-03 11:17:07 +01:00
Sebastian
f5a7bf912e this is it 2022-01-03 11:15:04 +01:00
Sebastian
d202032ee1 Merge branch 'main' of github.com:cventastic/POKT_DOKT into main 2022-01-03 11:07:07 +01:00
Sebastian
f20640c36e yo fix 2022-01-03 11:06:59 +01:00
cventastic
496136edeb Merge branch 'main' of github.com:cventastic/POKT_DOKT 2022-01-03 10:52:53 +01:00
cventastic
351246021b added traefik to pokt-test 2022-01-03 10:52:39 +01:00
Sebastian
9120c4b029 added harmony to the compose file 2022-01-03 10:46:17 +01:00
cventastic
b1e7d3b6b5 remove basicauth 2022-01-03 10:10:35 +01:00
cventastic
901694f4a6 fix typo 2021-12-31 01:13:08 +01:00
cventastic
62edb08bd6 added basic auth 2021-12-31 00:58:14 +01:00
cventastic
eacf6535b2 added traefik 2021-12-30 23:19:47 +01:00
cventastic
6491889c1b ident 2021-12-30 03:32:24 +01:00
cventastic
aeb6e72139 ident 2021-12-30 03:30:57 +01:00
cventastic
a521e0c258 ident 2021-12-30 03:27:23 +01:00
cventastic
e12f2267f5 ident 2021-12-30 03:24:27 +01:00
cventastic
44f277b77d mon 2021-12-30 03:22:09 +01:00
cventastic
510f7db452 mon 2021-12-30 03:19:15 +01:00
cventastic
012c6b6c9e mon 2021-12-30 03:10:26 +01:00
cventastic
a28bacd70d mon 2021-12-30 03:08:26 +01:00
cventastic
7200666d17 mon 2021-12-30 02:27:18 +01:00
cventastic
2d51371e40 mon 2021-12-30 02:24:25 +01:00
cventastic
baa59c67b9 mon 2021-12-30 02:08:35 +01:00
cventastic
0d0e15ee22 mon 2021-12-30 02:04:48 +01:00
cventastic
79599d9ae6 mon 2021-12-30 01:56:02 +01:00
cventastic
6e41db128a mon 2021-12-30 01:37:59 +01:00
cventastic
59addb79f4 mon 2021-12-30 01:11:31 +01:00
cventastic
bf367928ec mon 2021-12-30 01:07:05 +01:00
cventastic
7638132e52 mon 2021-12-30 01:00:10 +01:00
cventastic
2b6bc0909f mon 2021-12-30 00:59:20 +01:00
cventastic
e632c866b0 mon 2021-12-30 00:56:30 +01:00
cventastic
82093d60e8 mon 2021-12-30 00:45:00 +01:00
cventastic
d05a5e51ed mon 2021-12-30 00:37:40 +01:00
cventastic
5e10b5b69f mon 2021-12-30 00:26:38 +01:00
cventastic
cedc18d11d mon 2021-12-30 00:06:31 +01:00
cventastic
81b375a398 added metrics to chains 2021-12-29 23:55:08 +01:00
cventastic
e55eb4b439 mon 2021-12-29 23:08:35 +01:00
cventastic
a2a0d2ba8b mon 2021-12-29 23:02:30 +01:00
cventastic
763ce51530 mon 2021-12-29 22:59:30 +01:00
cventastic
47d2863f1e mon 2021-12-29 22:57:47 +01:00
cventastic
c69a6bf08b mon 2021-12-29 22:38:13 +01:00
cventastic
84236b8de7 sed back file 2021-12-29 21:58:58 +01:00
cventastic
c36e81aaeb mon 2021-12-29 21:58:16 +01:00
cventastic
2b3cb73b48 fix path issue 2021-12-29 20:49:41 +01:00
cventastic
4c05514207 monitoring 2021-12-29 20:37:01 +01:00
cventastic
1210ec6cf8 invisible skeleton dirs :O 2021-12-29 19:09:19 +01:00
cventastic
7050872fc8 whitespaces :O 2021-12-29 19:01:16 +01:00
cventastic
c0ea42376d added pokt query mainnet 2021-12-29 16:51:44 +01:00
cventastic
3788c55941 added pokt query 2021-12-29 16:47:07 +01:00
cventastic
e8d7fe3c0d homogen ports on stake servers 2021-12-29 16:39:02 +01:00
cventastic
0c6a55b773 relay.sh 2021-12-29 16:34:22 +01:00
cventastic
751f3db3cb no traefic for staking node for now 2021-12-29 14:55:04 +01:00
cventastic
ba1b091257 refactor 2021-12-29 14:49:35 +01:00
cventastic
619b8245cd added right shebang 2021-12-29 02:27:32 +01:00
cventastic
0747c10839 put whitelist to services 2021-12-29 01:39:48 +01:00
cventastic
cf195e161d workaround 2021-12-28 17:02:03 +01:00
cventastic
27392854d4 permissions for multiple runs 2021-12-28 16:48:10 +01:00
cventastic
a0f6ed6dc5 added traefik to testnetstaker 2021-12-28 15:55:58 +01:00
cventastic
8865df89e5 update README.md 2021-12-28 15:33:03 +01:00
cventastic
f43985edb9 update README.md 2021-12-28 14:56:02 +01:00
cventastic
e901b88030 no infile substitution 2021-12-28 14:45:41 +01:00
cventastic
a407f96e11 rename 2021-12-28 14:40:24 +01:00
cventastic
2c03e48d48 rename 2021-12-28 14:39:25 +01:00
cventastic
a932bd8e3b changed env to bash 2021-12-28 14:15:15 +01:00
cventastic
3b25d87098 make script executable 2021-12-28 14:14:43 +01:00
cventastic
a732bac611 changed path 2021-12-28 14:12:36 +01:00
cventastic
2607864a10 addded preparation skript 2021-12-28 14:04:11 +01:00
cventastic
9d5f4298c3 added relaychains for mainnet 2021-12-28 13:15:15 +01:00
cventastic
d32a161681 setting relaymode for front nodes 2021-12-28 12:21:52 +01:00
cventastic
53753a8c8c rpc node no relay 2021-12-28 12:14:34 +01:00
cventastic
723979e176 open p2p 2021-12-28 11:45:37 +01:00
cventastic
565a765c71 added new chains for testnet 2021-12-27 12:56:30 +01:00
cventastic
050d82021c whitelist fixed 2021-12-27 12:14:32 +01:00
cventastic
605321e12c ??? 2021-12-27 12:02:48 +01:00
cventastic
1afae2e6e6 reorg middleware 2021-12-27 11:57:45 +01:00
cventastic
59a7c17436 add ip whitelist 2021-12-27 11:45:47 +01:00
cventastic
32478b158f change hostip vs domain 2021-12-27 11:39:23 +01:00
cventastic
8b00b96450 add ip whitelist 2021-12-27 11:36:06 +01:00
cventastic
ea10406e71 add ip whitelist 2021-12-27 11:21:31 +01:00
cventastic
a418d0e1e2 remove more networks 2021-12-27 11:13:17 +01:00
cventastic
b7e2f76e58 Merge pull request #2 from cventastic/split
Split
2021-12-27 10:10:24 +00:00
cventastic
7c1e67b70d Merge pull request #1 from cventastic/split
Split
2021-12-27 09:52:17 +00:00
15 changed files with 598 additions and 21 deletions

View File

@@ -3,7 +3,5 @@ if [ ! -f /home/app/.pocket/setupdone ]
then then
mkdir -p /home/app/.pocket/data mkdir -p /home/app/.pocket/data
echo "wget -q -O - '$POCKET_SNAPSHOT' | tar -xv -C /home/app/.pocket/data/" echo "wget -q -O - '$POCKET_SNAPSHOT' | tar -xv -C /home/app/.pocket/data/"
wget -q -O - $POCKET_SNAPSHOT | tar -xv -C /home/app/.pocket/data/ wget -q -O - $POCKET_SNAPSHOT | tar -xv -C /home/app/.pocket/data/ && touch /home/app/.pocket/setupdone
touch /home/app/.pocket/setupdone
fi fi

View File

@@ -1,42 +1,50 @@
[ [
{ {
"id": "0001", "id": "0001",
"url": "https://${DOMAIN}/pokt" "url": "http://haproxy/pokt"
},
{
"id": "0004",
"url": "http://haproxy/bsc"
}, },
{ {
"id": "0005", "id": "0005",
"url": "https://${DOMAIN}/fuse" "url": "http://haproxy/fuse"
},
{
"id": "0009",
"url": "http://haproxy/polygon"
}, },
{ {
"id": "0021", "id": "0021",
"url": "https://${DOMAIN}/erigon" "url": "http://haproxy/mainnet"
}, },
{ {
"id": "0022", "id": "0022",
"url": "https://${DOMAIN}/erigon" "url": "http://haproxy/erigon"
}, },
{ {
"id": "0023", "id": "0023",
"url": "https://${DOMAIN}/ropsten" "url": "http://haproxy/ropsten"
}, },
{ {
"id": "0025", "id": "0025",
"url": "https://${DOMAIN}/rinkeby" "url": "http://haproxy/rinkeby"
}, },
{ {
"id": "0026", "id": "0026",
"url": "https://${DOMAIN}/goerli" "url": "http://haproxy/goerli"
}, },
{ {
"id": "0027", "id": "0027",
"url": "https://${DOMAIN}/xdai" "url": "http://haproxy/xdai"
}, },
{ {
"id": "0028", "id": "0028",
"url": "https://${DOMAIN}/erigon" "url": "http://haproxy/erigon"
}, },
{ {
"id": "0040", "id": "0040",
"url": "https://${DOMAIN}/harmony" "url": "http://haproxy/harmony"
} }
] ]

View File

@@ -1,18 +1,18 @@
[ [
{ {
"id": "0020", "id": "0020",
"url": "https://${DOMAIN}/goerli" "url": "http://haproxy/goerli"
}, },
{ {
"id": "0022", "id": "0022",
"url": "https://${DOMAIN}/rinkeby" "url": "http://haproxy/rinkeby"
}, },
{ {
"id": "0023", "id": "0023",
"url": "https://${DOMAIN}/ropsten" "url": "http://haproxy/ropsten"
}, },
{ {
"id": "0002", "id": "0002",
"url": "https://${DOMAIN}/pokttest" "url": "http://haproxy/pokttest"
} }
] ]

29
docker-compose.bsc.yml Normal file
View File

@@ -0,0 +1,29 @@
version: '3.1'
services:
binance-smart-chain:
image: dysnix/bsc
expose:
- "8545"
- "8546"
- "30303"
volumes:
- /root/bsc-datadir/server1/data-seed:/datadir
- /root/bsc-config/config.toml:/config.toml
command: "--cache 18000 --rpc --rpcaddr=\"0.0.0.0\" --rpc.allow-unprotected-txs --txlookuplimit 0 --syncmode snap --config /config.toml --datadir /datadir"
restart: unless-stopped
networks:
- chains
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.ipwhitelist.ipwhitelist.sourcerange=$WHITELIST"
- "traefik.http.middlewares.bsc-stripprefix.stripprefix.prefixes=/bsc"
- "traefik.http.services.bsc.loadbalancer.server.port=8545"
- "traefik.http.routers.bsc.entrypoints=websecure"
- "traefik.http.routers.bsc.tls.certresolver=myresolver"
- "traefik.http.routers.bsc.rule=Host(`$DOMAIN`) && PathPrefix(`/bsc`)"
- "traefik.http.routers.bsc.middlewares=avalanche-stripprefix, ipwhitelist"

View File

@@ -0,0 +1,20 @@
version: '3.1'
services:
haproxy:
build: haproxy
volumes:
- ./haproxy:/usr/local/etc/haproxy
expose:
- "8404"
- "80"
ports:
- "127.0.0.1:80:80"
restart: always
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8404"
- "prometheus-scrape.job_name=haproxy"
- "prometheus-scrape.metrics_path=/metrics"

View File

@@ -0,0 +1,104 @@
version: '3.1'
services:
### WIREGUARD
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
healthcheck:
test: [ "CMD", "ping", "-c", "1", "10.13.13.1" ]
timeout: 10s
interval: 5s
retries: 3
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
volumes:
- ./wireguard/config/wg0.conf:/config/wg0.conf
- /lib/modules:/lib/modules
# Expose prometheus port
expose:
- 9090
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
### MONITORING
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
volumes:
- ./prometheus/prometheus.autodiscover.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus:rw
- prometheus-docker-sd:/prometheus-docker-sd:ro
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.time=200h'
- '--web.enable-lifecycle'
restart: unless-stopped
network_mode: "service:wireguard"
labels:
org.label-schema.group: "monitoring"
depends_on:
- wireguard
prometheus-docker-sd:
image: "stucky/prometheus-docker-sd:latest"
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- prometheus-docker-sd:/prometheus-docker-sd:rw
nodeexporter:
image: prom/node-exporter:v1.2.2
container_name: nodeexporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
expose:
- 9100
labels:
org.label-schema.group: "monitoring"
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.42.0
container_name: cadvisor
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
#- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
restart: unless-stopped
expose:
- 8080
labels:
org.label-schema.group: "monitoring"
### VOLUMES
volumes:
prometheus_data:
prometheus-docker-sd:

View File

@@ -0,0 +1,246 @@
version: '3.1'
services:
traefik:
image: traefik:latest
container_name: traefik
restart: always
ports:
- "443:443"
- "127.0.0.1:8080:8080"
expose:
- "8082"
command:
- "--api=true"
- "--api.insecure=true"
- "--api.dashboard=true"
- "--log.level=DEBUG"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--entryPoints.metrics.address=:8082"
- "--metrics.prometheus.entryPoint=metrics"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# TESTING
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=$MAIL"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
volumes:
- "./traefik/letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
- "traefik.enable=true"
### WIREGUARD
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=$PUID
- PGID=$PGID
volumes:
- ./wireguard/config/wg0.conf:/config/wg0.conf
- /lib/modules:/lib/modules
# Expose prometheus port
expose:
- 9090
ports:
- $SERVERPORT:$SERVERPORT/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
### MONITORING
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
volumes:
- ./prometheus/prometheus-lt-1.yml:/etc/prometheus/prometheus.yml
- 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.time=200h'
- '--web.enable-lifecycle'
restart: unless-stopped
network_mode: "service:wireguard"
labels:
org.label-schema.group: "monitoring"
depends_on:
- wireguard
nodeexporter:
image: prom/node-exporter:v1.2.2
container_name: nodeexporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
expose:
- 9100
labels:
org.label-schema.group: "monitoring"
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.42.0
container_name: cadvisor
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
#- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
restart: unless-stopped
expose:
- 8080
labels:
org.label-schema.group: "monitoring"
pushgateway:
image: prom/pushgateway:v1.4.2
container_name: pushgateway
restart: unless-stopped
expose:
- 9091
labels:
org.label-schema.group: "monitoring"
### POKT
pocket-lt-1:
image: poktnetwork/pocket-core:stagenet-latest
ports:
- "127.0.0.1:8081:8081"
- "26656:26656"
expose:
- 26656
- 26660
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_CORE_KEY=$POKT_LT_1_POCKET_CORE_KEY
- POCKET_CORE_PASSPHRASE=$POKT_LT_1_POCKET_CORE_PASSPHRASE
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- ./pokt/config.json:/home/app/.pocket/config/config.json
- pocket-lt-1:/home/app/.pocket
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.services.pocket-lt-1.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-lt-1.entrypoints=websecure"
- "traefik.http.routers.pocket-lt-1.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-lt-1.rule=Host(`$POKT_LT_1_DOMAIN`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
pocket-lt-2:
image: poktnetwork/pocket-core:stagenet-latest
ports:
- "127.0.0.1:8082:8081"
- "26657:26656"
expose:
- 26656
- 26660
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_CORE_KEY=$POKT_LT_2_POCKET_CORE_KEY
- POCKET_CORE_PASSPHRASE=$POKT_LT_2_POCKET_CORE_PASSPHRASE
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- ./pokt/config.json:/home/app/.pocket/config/config.json
- pocket-lt-2:/home/app/.pocket
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.services.pocket-lt-2.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-lt-2.entrypoints=websecure"
- "traefik.http.routers.pocket-lt-2.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-lt-2.rule=Host(`$POKT_LT_2_DOMAIN`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
pocket-lt-3:
image: poktnetwork/pocket-core:stagenet-latest
ports:
- "127.0.0.1:8083:8081"
- "26658:26656"
expose:
- 26656
- 26660
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_CORE_KEY=$POKT_LT_3_POCKET_CORE_KEY
- POCKET_CORE_PASSPHRASE=$POKT_LT_3_POCKET_CORE_PASSPHRASE
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- ./pokt/config.json:/home/app/.pocket/config/config.json
- pocket-lt-3:/home/app/.pocket
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.services.pocket-lt-3.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-lt-3.entrypoints=websecure"
- "traefik.http.routers.pocket-lt-3.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-lt-3.rule=Host(`$POKT_LT_3_DOMAIN`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
pocket-lt-4:
image: poktnetwork/pocket-core:stagenet-latest
ports:
- "127.0.0.1:8084:8081"
- "26659:26656"
expose:
- 26656
- 26660
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_CORE_KEY=$POKT_LT_4_POCKET_CORE_KEY
- POCKET_CORE_PASSPHRASE=$POKT_LT_4_POCKET_CORE_PASSPHRASE
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- ./pokt/config.json:/home/app/.pocket/config/config.json
- pocket-lt-4:/home/app/.pocket
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.services.pocket-lt-4.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-lt-4.entrypoints=websecure"
- "traefik.http.routers.pocket-lt-4.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-lt-4.rule=Host(`$POKT_LT_4_DOMAIN`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
### VOLUMES
volumes:
pocket-lt-1:
pocket-lt-2:
pocket-lt-3:
pocket-lt-4:
prometheus_data:

View File

@@ -51,7 +51,35 @@ services:
- "traefik.http.services.pocket-testnet.loadbalancer.server.port=8081" - "traefik.http.services.pocket-testnet.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-testnet.entrypoints=websecure" - "traefik.http.routers.pocket-testnet.entrypoints=websecure"
- "traefik.http.routers.pocket-testnet.tls.certresolver=myresolver" - "traefik.http.routers.pocket-testnet.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-testnet.rule=Host(`$RELAYDOMAIN`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)" - "traefik.http.routers.pocket-testnet.rule=Host(`$TEST_DOMAIN_1`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
pocket-mainnet:
image: poktnetwork/pocket-core:stagenet-latest
ports:
- "127.0.0.1:8082:8081"
- "26657:26656"
expose:
- 26656
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
- POCKET_CORE_KEY=$POCKET_CORE_KEY_MAINNET
- POCKET_CORE_PASSPHRASE=$POCKET_CORE_PASSPHRASE_MAINNET
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./pokt/config.json:/home/app/.pocket/config/config.json
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- pocket-mainnet:/home/app/.pocket
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.services.pocket-mainnet.loadbalancer.server.port=8081"
- "traefik.http.routers.pocket-mainnet.entrypoints=websecure"
- "traefik.http.routers.pocket-mainnet.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-mainnet.rule=Host(`$TEST_DOMAIN_2`) && Path(`/v1`, `/v1/client/{dispatch|relay|challenge|sim}`)"
### MONITORING ### MONITORING
### WIREGUARD ### WIREGUARD
@@ -135,5 +163,6 @@ services:
### VOLUMES ### VOLUMES
volumes: volumes:
pocket-testnet: pocket-testnet:
pocket-mainnet:
prometheus_data: prometheus_data:

View File

@@ -0,0 +1,46 @@
version: '3.1'
services:
traefik:
image: traefik:latest
container_name: traefik
restart: always
expose:
- "8082"
ports:
- "443:443"
- "127.0.0.1:8080:8080"
command:
- "--api=true"
- "--api.insecure=true"
- "--api.dashboard=true"
- "--log.level=DEBUG"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--entryPoints.metrics.address=:8082"
- "--metrics.prometheus.entryPoint=metrics"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# TESTING
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=$MAIL"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
volumes:
- "./traefik/letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- chains
#labels:
# - "traefik.enable=true"
# - "prometheus-scrape.enabled=true"
# - "prometheus-scrape.port=8082"
# - "prometheus-scrape.job_name=traefik"
networks:
chains:
driver: bridge
ipam:
config:
- subnet: 192.168.0.1/27

7
haproxy/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM haproxy:alpine
USER root
RUN apk add --no-cache curl bash jq
USER haproxy
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]

25
haproxy/ethereum-healthcheck.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# $1 = Virtual Service IP (VIP)
# $2 = Virtual Service Port (VPT)
# $3 = Real Server IP (RIP)
# $4 = Real Server Port (RPT)
# $5 = Check Source IP
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
VIP=$1
VPT=$2
RIP=$3
RPT=$4
# RPT=8545
# Run curl with appropriate options
curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' https://$HAPROXY_SERVER_NAME:$RPT/$HAPROXY_PROXY_NAME 2>/dev/null | jq '.result' -r | grep -q false
exit1=$?
peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' https://$HAPROXY_SERVER_NAME:$RPT/$HAPROXY_PROXY_NAME 2>/dev/null | jq '.result' -r)
# If any of the above tests failed, then exit 1.
if [[ "$exit1" -ne 0 ]]; then exit 1; fi
if [[ `printf "%d" $peers` == "0" || `printf "%d" $peers` == "1" ]]; then exit 1; fi
exit 0

25
haproxy/polygon-healthcheck.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# $1 = Virtual Service IP (VIP)
# $2 = Virtual Service Port (VPT)
# $3 = Real Server IP (RIP)
# $4 = Real Server Port (RPT)
# $5 = Check Source IP
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
VIP=$1
VPT=$2
RIP=$3
RPT=$4
# RPT=8545
# Run curl with appropriate options
our_blockheight=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}' https://$HAPROXY_SERVER_NAME:$RPT/$HAPROXY_PROXY_NAME 2>/dev/null | printf "%d" $(jq '.result' -r))
pokt_blockheight=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}' https://poly-rpc.gateway.pokt.network 2>/dev/null | printf "%d" $(jq '.result' -r))
peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' https://$HAPROXY_SERVER_NAME:$RPT/$HAPROXY_PROXY_NAME 2>/dev/null | jq '.result' -r)
# If any of the above tests failed, then exit 1.
if [[ "$our_blockheight" -lt "$pokt_blockheight - 10" ]]; then exit 1; fi
if [[ `printf "%d" $peers` == "0" || `printf "%d" $peers` == "1" ]]; then exit 1; fi
exit 0

View File

@@ -143,7 +143,7 @@
"user_agent": "", "user_agent": "",
"validator_cache_size": 10000, "validator_cache_size": 10000,
"application_cache_size": 10000, "application_cache_size": 10000,
"rpc_timeout": 30000, "rpc_timeout": 60000,
"pocket_prometheus_port": "8083", "pocket_prometheus_port": "8083",
"prometheus_max_open_files": 3, "prometheus_max_open_files": 3,
"max_claim_age_for_proof_retry": 32, "max_claim_age_for_proof_retry": 32,

View File

@@ -34,6 +34,12 @@ scrape_configs:
static_configs: static_configs:
- targets: ['pushgateway:9091'] - targets: ['pushgateway:9091']
- job_name: 'haproxy'
scrape_interval: 10s
honor_labels: true
static_configs:
- targets: ['haproxy:8404']
- job_name: 'pocket-lt-1' - job_name: 'pocket-lt-1'
scrape_interval: 10s scrape_interval: 10s
honor_labels: true honor_labels: true

View File

@@ -0,0 +1,34 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'docker-host-alpha'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- "alert.rules"
# A scrape configuration containing exactly one endpoint to scrape.
scrape_configs:
- job_name: 'nodeexporter'
scrape_interval: 5s
static_configs:
- targets: ['nodeexporter:9100']
- job_name: 'cadvisor'
scrape_interval: 5s
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'prometheus'
scrape_interval: 10s
static_configs:
- targets: ['localhost:9090']
- job_name: 'service_discovery'
file_sd_configs:
- files:
- '/prometheus-docker-sd/docker-targets.json'