From f8cc3fee6d3b019109ee200946c5702bdf4290f0 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Thu, 8 Jul 2021 16:26:09 -0300 Subject: [PATCH] Add instructions to run otterscan with a custom erigon url --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3fcf9e2..8de2e32 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,12 @@ To stop Otterscan service, run: docker stop otterscan ``` +By default it assumes your Erigon node is at http://127.0.0.1:8545. You can override the URL by setting the `ERIGON_URL` env variable on `docker run`: + +``` +docker run --rm -p 5000:80 --name otterscan -d --env ERIGON_URL="" otterscan/otterscan: +``` + ### (Alternative 1) Build Otterscan docker image locally and run it If you don't want to download from Docker Hub, you can build the docker image from the sources and run it.