Add instructions to run otterscan with a custom erigon url

This commit is contained in:
Willian Mitsuda 2021-07-08 16:26:09 -03:00
parent b6b33812c9
commit f8cc3fee6d
1 changed files with 6 additions and 0 deletions

View File

@ -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="<your-erigon-node-url>" otterscan/otterscan:<versiontag>
```
### (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.