From 14281694505965313d513aba5fe4b405aa21c505 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Wed, 30 Aug 2023 11:29:04 +0530 Subject: [PATCH] Set default values for RPC endpoint in graph-node --- .../compose/docker-compose-fixturenet-graph-node.yml | 2 +- app/data/stacks/sushiswap-subgraph/README.md | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/data/compose/docker-compose-fixturenet-graph-node.yml b/app/data/compose/docker-compose-fixturenet-graph-node.yml index c4737195..278af02a 100644 --- a/app/data/compose/docker-compose-fixturenet-graph-node.yml +++ b/app/data/compose/docker-compose-fixturenet-graph-node.yml @@ -18,7 +18,7 @@ services: postgres_user: graph-node postgres_pass: password postgres_db: graph-node - ethereum: ${NETWORK}:${ETH_RPC_ENDPOINT} + ethereum: ${NETWORK:-filecoin}:${ETH_RPC_ENDPOINT:-https://archive.lotus.vdb.to/rpc/v1} GRAPH_LOG: debug ETHEREUM_REORG_THRESHOLD: 3 ports: diff --git a/app/data/stacks/sushiswap-subgraph/README.md b/app/data/stacks/sushiswap-subgraph/README.md index 0ee6f09a..473bfbf1 100644 --- a/app/data/stacks/sushiswap-subgraph/README.md +++ b/app/data/stacks/sushiswap-subgraph/README.md @@ -32,18 +32,10 @@ laconic-so --stack sushiswap-subgraph build-containers ## Deploy -Create an env file to be used in the next step: - - ```bash - # Network and ETH RPC endpoint to run graph-node against - NETWORK=filecoin - ETH_RPC_ENDPOINT= - ``` - Deploy the stack: ```bash -laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph --env-file up +laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph up # Note: Remove any existing volumes for the cluster for a fresh start ```