From b87bd69134458dd0de4d919aaf6b1be91840efd1 Mon Sep 17 00:00:00 2001 From: alrevuelta Date: Tue, 7 Nov 2023 13:39:40 +0100 Subject: [PATCH] Add topics for autosharding --- docker-compose.yml | 2 ++ run_node.sh | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c48c99b..a5eecea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -124,6 +124,8 @@ services: - ./postgres_cfg/db.sql:/docker-entrypoint-initdb.d/db.sql:Z - ${PG_DATA_DIR:-./postgresql}:/var/lib/postgresql/data:Z command: postgres -c config_file=/etc/postgresql/postgresql.conf + ports: + - 127.0.0.1:5432:5432 healthcheck: test: ["CMD-SHELL", "pg_isready -d db_prod"] interval: 30s diff --git a/run_node.sh b/run_node.sh index b42b186..948f3ee 100644 --- a/run_node.sh +++ b/run_node.sh @@ -56,8 +56,14 @@ fi exec /usr/bin/wakunode\ --relay=true\ - --topic=/waku/2/default-waku/proto\ - --topic=/waku/2/dev-waku/proto\ + --topic=/waku/2/rs/1/0\ + --topic=/waku/2/rs/1/1\ + --topic=/waku/2/rs/1/2\ + --topic=/waku/2/rs/1/3\ + --topic=/waku/2/rs/1/4\ + --topic=/waku/2/rs/1/5\ + --topic=/waku/2/rs/1/6\ + --topic=/waku/2/rs/1/7\ --filter=true\ --lightpush=true\ --rpc-admin=true\