Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Get network name and node from env vars #5697

Open
2 tasks done
gabmontes opened this issue Nov 6, 2024 · 0 comments
Open
2 tasks done

[Feature] Get network name and node from env vars #5697

gabmontes opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gabmontes
Copy link

Description

When running the node using docker-compose, it would be helpful to get the network name and RPC url from environment variables instead of having to modify docker/docker-compose.yml#L22.

This change would do the trick:

diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index c78c2eb21..36e8beba7 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -19,7 +19,7 @@ services:
       postgres_pass: let-me-in
       postgres_db: graph-node
       ipfs: 'ipfs:5001'
-      ethereum: 'mainnet:http://host.docker.internal:8545'
+      ethereum: ${NETWORK_NAME:-mainnet}:${ETHEREUM_RPC_URL:-http://host.docker.internal:8545}
       GRAPH_LOG: info
   ipfs:
     image: ipfs/kubo:v0.17.0

What do you think?

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No.

Some information to help us out

  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.
@gabmontes gabmontes added the enhancement New feature or request label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant