Skip to content

Conversation

@ch4r10t33r
Copy link
Collaborator

When leanpoint runs in Docker and the devnet (zeam nodes) runs on the host, 127.0.0.1 in upstreams config points to the container, not the host, so upstreams get ConnectionRefused.

Changes:

  • --docker flag: generates upstreams with host.docker.internal so leanpoint in Docker can reach devnet on the host (Docker Desktop / Orbstack).
  • Use metricsPort from validator config when present so ports match validator-config.yaml (8081, 8082, …).

Usage:

python3 convert-validator-config.py validator-config.yaml upstreams-local-docker.json --docker

Then run leanpoint with that config mounted:

docker run -d -p 5555:5555 -v $(pwd)/upstreams-local-docker.json:/etc/leanpoint/upstreams.json leanpoint:latest

…l upstreams

- --docker uses host.docker.internal so leanpoint in Docker can reach devnet on host
- Use metricsPort from validator config when present (matches validator-config.yaml)
@ch4r10t33r ch4r10t33r merged commit cc007c8 into main Jan 30, 2026
12 checks passed
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