logos-messaging-test-query/docker/run_node_sqlite.sh
Ivan Folgueira Bande 7cdd7e4fad
Setting storenode counter parts
With this parameter, each node is configured as "store client" and the
"store server" is the one indicated in the "storenode" parameter.
2023-08-25 10:27:41 +02:00

31 lines
919 B
Bash

#!/bin/sh
## Install the `dig` command
apk add --update bind-tools
peer_IP=$(dig +short nwaku_postgres)
exec /usr/bin/wakunode\
--nodekey=2d714a1fada214dead6dc9c7274585eca0ff292451866e7d6d677dc818e8ccd2\
--staticnode=/ip4/${peer_IP}/tcp/30303/p2p/16Uiu2HAmJyLCRhiErTRFcW5GKPrpoMjGbbWdFMx4GCUnnhmxeYhd\
--storenode=/ip4/${peer_IP}/tcp/30303/p2p/16Uiu2HAmJyLCRhiErTRFcW5GKPrpoMjGbbWdFMx4GCUnnhmxeYhd\
--relay=true\
--topic=/waku/2/default-waku/proto\
--topic=/waku/2/dev-waku/proto\
--filter=true\
--lightpush=true\
--rpc-admin=true\
--keep-alive=true\
--max-connections=150\
--log-level=DEBUG\
--dns-discovery=true\
--rpc-port=8546\
--rpc-address=0.0.0.0\
--tcp-port=30304\
--metrics-server=True\
--metrics-server-port=8004\
--metrics-server-address=0.0.0.0\
--store-message-db-url="sqlite:///data/store.sqlite3"\
--store=true\
--store-message-retention-policy=time:864000