hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
93 stars 120 forks source link

Change the default port for Indexer #3807

Closed prernaadev01 closed 1 day ago

prernaadev01 commented 1 week ago

Problem description

Currently, we are not able to run Guardian and Indexer both together at the same time as its being allotted the same port : 8080. So, when we try to run both together, we are getting an error saying that the port is already used.

Requirements

  1. Need to change the default port for Indexer by updating the required env files:
    1. Need to add PORT = 8081 in below files https://github.com/hashgraph/guardian/blob/main/indexer-api-gateway/configs/.env.gateway https://github.com/hashgraph/guardian/blob/main/indexer-api-gateway/configs/.env.gateway.develop https://github.com/hashgraph/guardian/blob/main/indexer-api-gateway/configs/.env.gateway.template

Definition of done

  1. Updating new ENV variable in all required files.
  2. Test whether we are able to run Indexer and Guardian both together at same time.
  3. Update the documentation

Acceptance criteria

We should be able to run both Guardian and Indexer parallel at same time.