Skip to content

docs: document HOST_DATA_DIR and add default to env files#1047

Open
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:docs/document-host-data-dir
Open

docs: document HOST_DATA_DIR and add default to env files#1047
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:docs/document-host-data-dir

Conversation

@mehmetkr-31
Copy link
Copy Markdown

Summary

Documents the HOST_DATA_DIR environment variable and adds a sensible default (./data) to both .env.mainnet and .env.sepolia.

Problem

docker-compose.yml mounts chain data using ${HOST_DATA_DIR}:/data, but:

  1. HOST_DATA_DIR is never mentioned in the README Quick Start guide.
  2. Neither .env.mainnet nor .env.sepolia defines it, so operators who follow the docs may end up with an anonymous Docker volume that is hard to locate or accidentally pruned.

Solution

  • Add HOST_DATA_DIR=./data (with an explanatory comment) to .env.mainnet and .env.sepolia.
  • Add step 4 in the README Quick Start guide describing what HOST_DATA_DIR does and why it should be set.

Impact

  • New node operators are less likely to lose chain data due to missing volume configuration.
  • The Quick Start now covers all required/strongly-recommended variables.

Checklist

  • Change is minimal and focused on documentation/configuration.
  • No breaking changes to existing behavior.
  • Default value (./data) is safe and widely used.

HOST_DATA_DIR is referenced in docker-compose.yml but is not mentioned
in the README and has no default in the bundled .env files. This causes
two problems:

1. New operators may not realize they need to set it, leading to chain
data being written to an anonymous Docker volume that is hard to locate.
2. If the variable is unset, Docker Compose may mount an empty path.

Add HOST_DATA_DIR=./data to both .env.mainnet and .env.sepolia, and
add a dedicated step in the Quick Start guide explaining its purpose.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants